Lines 2-25
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= pngcrush |
4 |
PORTNAME= pngcrush |
5 |
PORTVERSION= 1.8.7 |
5 |
PORTVERSION= 1.8.13 |
6 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
7 |
MASTER_SITES= SF/pmt/${PORTNAME}/old-versions/${PORTVERSION:R}/${PORTVERSION}/ |
7 |
MASTER_SITES= SF/pmt/${PORTNAME}/${PORTVERSION}/ \ |
8 |
# # SF/pmt/${PORTNAME}/${PORTVERSION}/ |
8 |
SF/pmt/${PORTNAME}/old-versions/${PORTVERSION:R}/${PORTVERSION}/ |
9 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-nolib |
9 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-nolib |
10 |
|
10 |
|
11 |
MAINTAINER= vsasjason@gmail.com |
11 |
MAINTAINER= vsasjason@gmail.com |
12 |
COMMENT= Optimizer for PNG files |
12 |
COMMENT= Optimizer for PNG files |
13 |
|
13 |
|
|
|
14 |
LICENSE= Pngcrush |
15 |
LICENSE_NAME= Pngcrush License |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
17 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
18 |
|
14 |
LIB_DEPENDS= libpng.so:graphics/png |
19 |
LIB_DEPENDS= libpng.so:graphics/png |
15 |
|
20 |
|
16 |
USES= tar:xz |
21 |
USES= localbase:ldflags tar:xz |
17 |
CFLAGS+= -DPNGCRUSH_COUNT_COLORS -I${LOCALBASE}/include |
22 |
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LD="${CC}" \ |
18 |
LDFLAGS+= -L${LOCALBASE}/lib |
23 |
LDFLAGS="${LDFLAGS}" |
19 |
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}" |
|
|
20 |
|
24 |
|
21 |
PLIST_FILES= bin/pngcrush |
25 |
PLIST_FILES= bin/pngcrush |
22 |
|
26 |
|
|
|
27 |
post-patch: |
28 |
@${REINPLACE_CMD} -e '/^LIBS/s|-L$$([[:alnum:]]*) ||g' \ |
29 |
${WRKSRC}/Makefile |
30 |
|
23 |
do-install: |
31 |
do-install: |
24 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/pngcrush |
32 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/pngcrush |
25 |
|
33 |
|