2013-03-20 22:22:11 +01:00
|
|
|
# Created by: Antoine Brodin <antoine@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libpff
|
|
|
|
DISTVERSION= alpha-20120802
|
|
|
|
CATEGORIES= devel
|
2013-07-30 00:08:48 +02:00
|
|
|
MASTER_SITES= https://googledrive.com/host/0B3fBvzttpiiScU9qcG5ScEZKZE0/ \
|
|
|
|
LOCAL/antoine
|
2013-03-20 22:22:11 +01:00
|
|
|
|
|
|
|
MAINTAINER= antoine@FreeBSD.org
|
|
|
|
COMMENT= Library and tools to access the PFF and the OFF formats
|
|
|
|
|
|
|
|
LICENSE= LGPL3
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-python
|
2013-07-30 00:08:48 +02:00
|
|
|
USES= gettext iconv pathfix
|
|
|
|
USE_PYTHON= -2.7
|
2013-03-20 22:22:11 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:E}
|
|
|
|
|
|
|
|
MAN1= pffexport.1 pffinfo.1
|
|
|
|
MAN3= libpff.3
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS ChangeLog
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
2013-09-20 19:13:42 +02:00
|
|
|
NO_STAGE= yes
|
2013-03-20 22:22:11 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-07-30 00:08:48 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2013-03-20 22:22:11 +01:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2013-07-30 00:08:48 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2013-03-20 22:22:11 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${PORTNAME}/* \
|
|
|
|
${WRKSRC}/examples/${PORTNAME:S,lib,py,}/* ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|