mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
d7d153bc58
- Fix COMMENT and pkg-descr - Bump PORTREVISION PR: 178450 Submitted by: thierry
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: Choe, Cheng-Dae <whitekid@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= freeimage
|
|
PORTVERSION= 3.15.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
|
|
DISTNAME= FreeImage${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= Simple C/C++ bitmap 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 \
|
|
include/FreeImagePlus.h \
|
|
lib/libfreeimage.a \
|
|
lib/libfreeimage-${PORTVERSION}.so \
|
|
lib/libfreeimage.so.3 \
|
|
lib/libfreeimage.so \
|
|
lib/libfreeimageplus.a \
|
|
lib/libfreeimageplus-${PORTVERSION}.so \
|
|
lib/libfreeimageplus.so.3 \
|
|
lib/libfreeimageplus.so
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-g root|-g wheel|' \
|
|
${WRKSRC}/Makefile.gnu ${WRKSRC}/Makefile.fip
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && ${GMAKE} -f Makefile.fip
|
|
|
|
post-install:
|
|
cd ${WRKSRC} && ${GMAKE} -f Makefile.fip ${INSTALL_TARGET}
|
|
${LN} -s libfreeimageplus-${PORTVERSION} ${PREFIX}/lib/libfreeimageplus.so.3
|
|
${LN} -s libfreeimageplus-${PORTVERSION} ${PREFIX}/lib/libfreeimageplus.so
|
|
|
|
.include <bsd.port.post.mk>
|