freebsd-ports/graphics/freeimage/Makefile
Pietro Cerutti a5f3f72336 - Remove dependency on memalign
PR:		129388
Submitted by:	Jacob Atzen <jatzen@gmail.com>
2008-12-03 16:29:37 +00:00

40 lines
852 B
Makefile

# New ports collection makefile for: freeimage
# Date created: 2005-09-01
# Whom: Choe, Cheng-Dae
#
# $FreeBSD$
#
PORTNAME= freeimage
PORTVERSION= 3.11.0
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF
DISTNAME= FreeImage${PORTVERSION:S/.//g}
MAINTAINER= gahr@FreeBSD.org
COMMENT= An open source graphics library
WRKSRC= ${WRKDIR}/FreeImage
USE_GMAKE= yes
USE_ZIP= yes
# convert CRLF to LF for gcc-2.95
EXTRACT_BEFORE_ARGS= -qoa
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS+= -fPIC
.endif
PLIST_FILES= include/FreeImage.h \
lib/libfreeimage.a \
lib/libfreeimage.so \
lib/libfreeimage.so.3
post-patch:
${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g'
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile.gnu
.include <bsd.port.post.mk>