blob: 367bf11283f7d7a94008a9e26b5b45830ab31256 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# New ports collection makefile for: freeimage
# Date created: 2005-09-01
# Whom: Choe, Cheng-Dae
#
# $FreeBSD$
#
PORTNAME= freeimage
PORTVERSION= 3.12.0
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
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-3.12.0.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|/usr|${PREFIX}|g; s|-g root|-g wheel|g' ${WRKSRC}/Makefile.gnu
post-install:
${LN} -f ${PREFIX}/lib/libfreeimage-3.12.0.so ${PREFIX}/lib/libfreeimage.so.3
.include <bsd.port.post.mk>
|