1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/graphics/freeimage/Makefile

42 lines
900 B
Makefile
Raw Normal View History

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