2013-08-29 23:58:49 +02:00
|
|
|
# Created by: giffunip@asme.org
|
1999-08-25 06:25:23 +02:00
|
|
|
# $FreeBSD$
|
1998-12-02 00:11:12 +01:00
|
|
|
|
2005-08-29 09:32:09 +02:00
|
|
|
PORTNAME= lzo2
|
2015-02-07 13:08:08 +01:00
|
|
|
PORTVERSION= 2.09
|
1998-12-02 00:11:12 +01:00
|
|
|
CATEGORIES= archivers devel
|
2005-11-07 03:20:50 +01:00
|
|
|
MASTER_SITES= http://www.oberhumer.com/opensource/lzo/download/ \
|
2011-05-23 13:34:36 +02:00
|
|
|
LOCAL/mandree
|
2005-08-29 09:32:09 +02:00
|
|
|
DISTNAME= lzo-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
1998-12-02 00:11:12 +01:00
|
|
|
|
2010-06-13 13:57:36 +02:00
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Portable speedy, lossless data compression library
|
1998-12-02 00:11:12 +01:00
|
|
|
|
2011-05-10 22:10:21 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-10-14 13:02:11 +02:00
|
|
|
USES= libtool
|
2008-05-30 17:39:24 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-05-10 22:10:21 +02:00
|
|
|
CONFIGURE_ARGS= --enable-shared --docdir=${DOCSDIR}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
1999-11-21 01:53:55 +01:00
|
|
|
|
2014-02-21 14:34:56 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2014-07-03 21:06:07 +02:00
|
|
|
DOCS_INSTALL_TARGET_OFF= install-exec install-pkgincludeHEADERS
|
2011-08-09 00:24:23 +02:00
|
|
|
|
2008-05-30 17:39:24 +02:00
|
|
|
post-build:
|
2011-08-09 00:24:23 +02:00
|
|
|
.if !defined(WITHOUT_CHECKS)
|
2009-01-07 23:18:46 +01:00
|
|
|
@${ECHO_MSG} "===> Running self-tests for ${PKGNAME} (can take a few minutes)"
|
|
|
|
@#: override MALLOC_OPTIONS, else tests take excessively long
|
2011-03-21 17:06:17 +01:00
|
|
|
cd ${WRKSRC} && ${SETENV} MALLOC_OPTIONS=jz ${MAKE} check test SHELL="${SH} -x"
|
2011-08-09 00:24:23 +02:00
|
|
|
.endif
|
2008-05-30 17:39:24 +02:00
|
|
|
|
1998-12-02 00:11:12 +01:00
|
|
|
post-install:
|
2013-10-23 23:16:13 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblzo2.so.2
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2008-06-20 20:38:52 +02:00
|
|
|
cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README
|
|
|
|
.for i in AUTHORS BUGS COPYING NEWS README THANKS
|
2013-10-23 23:16:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
|
2008-06-20 20:38:52 +02:00
|
|
|
.endfor
|
2013-10-23 23:16:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}/
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${STAGEDIR}${EXAMPLESDIR}/
|
1998-12-02 00:11:12 +01:00
|
|
|
|
2008-08-29 02:38:26 +02:00
|
|
|
.include <bsd.port.mk>
|