2014-01-17 17:17:40 +01:00
|
|
|
# Created by: Alexander Kuehn <freebsd@nagilum.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= zopfli
|
2015-10-24 16:16:23 +02:00
|
|
|
DISTVERSIONPREFIX= ${PORTNAME}-
|
|
|
|
DISTVERSION= 1.0.1
|
2014-01-17 17:17:40 +01:00
|
|
|
CATEGORIES= archivers
|
|
|
|
|
2015-10-11 15:19:10 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-01-17 17:17:40 +01:00
|
|
|
COMMENT= Zopfli Compression Algorithm
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
2015-10-15 01:51:10 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-01-17 17:17:40 +01:00
|
|
|
|
2015-08-16 04:52:45 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= google
|
2014-01-17 17:17:40 +01:00
|
|
|
|
2015-08-16 04:52:45 +02:00
|
|
|
USES= gmake
|
|
|
|
|
|
|
|
ALL_TARGET= ${PORTNAME} ${PORTNAME}png \
|
|
|
|
lib${PORTNAME} lib${PORTNAME}png
|
|
|
|
MAKE_ARGS= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS} ${LDFLAGS}" \
|
|
|
|
CXXFLAGS="${CXXFLAGS}"
|
|
|
|
CFLAGS+= -fPIC # XXX Convert into an implicit rule
|
|
|
|
LDFLAGS+= -lm
|
|
|
|
USE_LDCONFIG= yes
|
2014-01-17 17:17:40 +01:00
|
|
|
|
2015-09-10 17:58:32 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2014-01-17 17:17:40 +01:00
|
|
|
do-install:
|
2015-08-16 04:52:45 +02:00
|
|
|
.for f in ${PORTNAME} ${PORTNAME}png
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
.for f in lib${PORTNAME}.so.1.0.1 lib${PORTNAME}png.so.1.0.0
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/lib
|
|
|
|
${LN} -fs ${f} ${STAGEDIR}${PREFIX}/lib/${f:R:R}
|
|
|
|
${LN} -fs ${f:R:R} ${STAGEDIR}${PREFIX}/lib/${f:R:R:R}
|
|
|
|
.endfor
|
|
|
|
(cd ${WRKSRC}/src && ${COPYTREE_SHARE} \
|
|
|
|
"zopfli zopflipng" ${STAGEDIR}${PREFIX}/include \
|
|
|
|
"-name *.h")
|
2014-01-17 17:17:40 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|