2010-12-20 09:00:38 +00:00
|
|
|
# New ports collection makefile for: FreeImage
|
|
|
|
# Date created: 2005-09-01
|
|
|
|
# Whom: Choe, Cheng-Dae <whitekid@gmail.com>
|
2005-09-04 22:25:41 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= freeimage
|
2011-11-23 17:55:39 +00:00
|
|
|
PORTVERSION= 3.15.1
|
2005-09-04 22:25:41 +00:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
|
2005-09-04 22:25:41 +00:00
|
|
|
DISTNAME= FreeImage${PORTVERSION:S/.//g}
|
|
|
|
|
2008-06-13 14:04:39 +00:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2005-09-04 22:25:41 +00:00
|
|
|
COMMENT= An open source graphics library
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
2010-12-20 09:00:38 +00:00
|
|
|
USE_DOS2UNIX= Source/LibOpenJPEG/opj_malloc.h
|
|
|
|
USE_GMAKE= yes
|
2008-04-01 22:11:32 +00:00
|
|
|
USE_LDCONFIG= yes
|
2010-12-20 09:00:38 +00:00
|
|
|
WRKSRC= ${WRKDIR}/FreeImage
|
|
|
|
|
2012-02-06 11:44:40 +00:00
|
|
|
CFLAGS+= -fexceptions -fvisibility=hidden
|
|
|
|
|
2010-12-20 09:00:38 +00:00
|
|
|
PLIST_FILES= include/FreeImage.h \
|
|
|
|
lib/libfreeimage.a \
|
|
|
|
lib/libfreeimage-${PORTVERSION}.so \
|
|
|
|
lib/libfreeimage.so.3 \
|
|
|
|
lib/libfreeimage.so
|
2005-09-04 22:25:41 +00:00
|
|
|
|
2008-09-24 22:36:22 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2008-09-24 21:12:05 +00:00
|
|
|
post-patch:
|
2010-12-20 09:00:38 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-g root|-g wheel|' \
|
|
|
|
${WRKSRC}/Makefile.gnu
|
2008-09-24 21:12:05 +00:00
|
|
|
|
2008-09-24 22:36:22 +00:00
|
|
|
.include <bsd.port.post.mk>
|