Lines 1-12
Link Here
|
1 |
# New ports collection makefile for: freeimage |
1 |
# New ports collection makefile for: FreeImage |
2 |
# Date created: 2005-09-01 |
2 |
# Date created: 2005-09-01 |
3 |
# Whom: Choe, Cheng-Dae |
3 |
# Whom: Choe, Cheng-Dae <whitekid@gmail.com> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/graphics/freeimage/Makefile,v 1.13 2009/08/22 00:22:48 amdmi3 Exp $ |
5 |
# $FreeBSD: ports/graphics/freeimage/Makefile,v 1.13 2009/08/22 00:22:48 amdmi3 Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= freeimage |
8 |
PORTNAME= freeimage |
9 |
PORTVERSION= 3.12.0 |
9 |
PORTVERSION= 3.14.1 |
10 |
CATEGORIES= graphics |
10 |
CATEGORIES= graphics |
11 |
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION} |
11 |
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION} |
12 |
DISTNAME= FreeImage${PORTVERSION:S/.//g} |
12 |
DISTNAME= FreeImage${PORTVERSION:S/.//g} |
Lines 14-25
Link Here
|
14 |
MAINTAINER= gahr@FreeBSD.org |
14 |
MAINTAINER= gahr@FreeBSD.org |
15 |
COMMENT= An open source graphics library |
15 |
COMMENT= An open source graphics library |
16 |
|
16 |
|
17 |
WRKSRC= ${WRKDIR}/FreeImage |
|
|
18 |
USE_GMAKE= yes |
19 |
USE_ZIP= yes |
17 |
USE_ZIP= yes |
20 |
# convert CRLF to LF for gcc-2.95 |
18 |
USE_DOS2UNIX= Source/LibOpenJPEG/opj_malloc.h |
21 |
EXTRACT_BEFORE_ARGS= -qoa |
19 |
USE_GMAKE= yes |
22 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
|
|
21 |
WRKSRC= ${WRKDIR}/FreeImage |
22 |
|
23 |
PLIST_FILES= include/FreeImage.h \ |
24 |
lib/libfreeimage.a \ |
25 |
lib/libfreeimage-${PORTVERSION}.so \ |
26 |
lib/libfreeimage.so.3 \ |
27 |
lib/libfreeimage.so |
23 |
|
28 |
|
24 |
.include <bsd.port.pre.mk> |
29 |
.include <bsd.port.pre.mk> |
25 |
|
30 |
|
Lines 27-42
Link Here
|
27 |
CFLAGS+= -fPIC |
32 |
CFLAGS+= -fPIC |
28 |
.endif |
33 |
.endif |
29 |
|
34 |
|
30 |
PLIST_FILES= include/FreeImage.h \ |
|
|
31 |
lib/libfreeimage.a \ |
32 |
lib/libfreeimage-3.12.0.so \ |
33 |
lib/libfreeimage.so.3 |
34 |
|
35 |
post-patch: |
35 |
post-patch: |
36 |
${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' |
36 |
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-g root|-g wheel|' \ |
37 |
${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g; s|-g root|-g wheel|g' ${WRKSRC}/Makefile.gnu |
37 |
${WRKSRC}/Makefile.gnu |
38 |
|
|
|
39 |
post-install: |
40 |
${LN} -f ${PREFIX}/lib/libfreeimage-3.12.0.so ${PREFIX}/lib/libfreeimage.so.3 |
41 |
|
38 |
|
42 |
.include <bsd.port.post.mk> |
39 |
.include <bsd.port.post.mk> |