# New ports collection makefile for: freeimage # Date created: 2005-09-01 # Whom: Choe, Cheng-Dae # # $FreeBSD$ # PORTNAME= freeimage PORTVERSION= 3.11.0 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 .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|||g' ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile.gnu .include