aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/libieee1284/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/libieee1284/Makefile')
-rw-r--r--sysutils/libieee1284/Makefile50
1 files changed, 18 insertions, 32 deletions
diff --git a/sysutils/libieee1284/Makefile b/sysutils/libieee1284/Makefile
index 86ef53275a44..d68606b16376 100644
--- a/sysutils/libieee1284/Makefile
+++ b/sysutils/libieee1284/Makefile
@@ -3,51 +3,37 @@
PORTNAME= libieee1284
PORTVERSION= 0.2.10
-PORTREVISION= 0
CATEGORIES= sysutils
MASTER_SITES= http://cyberelk.net/tim/data/libieee1284/stable/
MAINTAINER= ports@FreeBSD.org
-COMMENT= IEEE1284 communications library
+COMMENT= IEEE1284 communication library
-USE_BZIP2= yes
-GNU_CONFIGURE= yes
-USE_LDCONFIG= yes
-ONLY_FOR_ARCHS= i386
+LICENSE= GPLv2
-.if defined(WITH_PYTHON)
-USE_PYTHON= yes
-.endif
+ONLY_FOR_ARCHS= i386
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+USES= tar:bzip2
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
-MAN3!= ${CAT} ${FILESDIR}/man3
+PORTDOCS= README README.FreeBSD
-.if defined(WITH_PYTHON)
-CFLAGS+= -I${PYTHON_INCLUDEDIR}
-LDFLAGS+= -L${PYTHON_LIBDIR}
-CONFIGURE_ARGS+=--with-python=yes
-PLIST_SUB+= PYTHON=""
-.else
-CONFIGURE_ARGS+=--with-python=no
-PLIST_SUB+= PYTHON="@comment "
-.endif
+OPTIONS_DEFINE= PYTHON
+OPTIONS_SUB= yes
-.if !defined(NOPORTDOCS)
-PORTDOCS= README README.FreeBSD
-.endif
+PYTHON_USE= PYTHON=yes
+PYTHON_CFLAGS= -I${PYTHON_INCLUDEDIR}
+PYTHON_LDFLAGS= -L${PYTHON_LIBDIR}
+PYTHON_CONFIGURE_ON= --with-python=yes
+PYTHON_CONFIGURE_OFF= --with-python=no
post-patch:
@${REINPLACE_CMD} -E -e 's,(objformat=).*,\1elf,' \
${WRKSRC}/configure
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
-.endif
-
-.include <bsd.port.post.mk>
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>