aboutsummaryrefslogtreecommitdiffstats
path: root/devel/allegro-devel
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2013-03-17 13:55:42 +0800
committerbeech <beech@FreeBSD.org>2013-03-17 13:55:42 +0800
commit7ae71f68a42b8ae344a40198644a1744357e9b25 (patch)
tree54e97406081f9e87c9488bcde66d2781dda1a9c2 /devel/allegro-devel
parent010ed3c007357733536a0e2db6d34533c029c344 (diff)
downloadfreebsd-ports-gnome-7ae71f68a42b8ae344a40198644a1744357e9b25.tar.gz
freebsd-ports-gnome-7ae71f68a42b8ae344a40198644a1744357e9b25.tar.zst
freebsd-ports-gnome-7ae71f68a42b8ae344a40198644a1744357e9b25.zip
- Makefile tweaks
- Convert to OptionsNG PR: ports/177004 Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
Diffstat (limited to 'devel/allegro-devel')
-rw-r--r--devel/allegro-devel/Makefile18
-rw-r--r--devel/allegro-devel/pkg-plist22
2 files changed, 16 insertions, 24 deletions
diff --git a/devel/allegro-devel/Makefile b/devel/allegro-devel/Makefile
index ce977a5d0d57..295f425a8503 100644
--- a/devel/allegro-devel/Makefile
+++ b/devel/allegro-devel/Makefile
@@ -2,6 +2,7 @@
PORTNAME= allegro
DISTVERSION= 4.4.2
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF/alleg/allegro/${PORTVERSION}
PKGNAMESUFFIX= -devel
@@ -19,8 +20,7 @@ USE_GL= gl glu
MAKE_JOBS_UNSAFE= yes
-.include "Makefile.man"
-INFO= allegro
+PORTDOCS= *
CONFLICTS= allegro-[0-9]*
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
@@ -36,8 +36,22 @@ LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib \
jack.0:${PORTSDIR}/audio/jack \
png15:${PORTSDIR}/graphics/png
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+.include "Makefile.man"
+INFO= allegro
+.endif
+
+post-patch:
+.if ! ${PORT_OPTIONS:MDOCS}
+ @${REINPLACE_CMD} -e 's|add_subdirectory(docs)|#add_subdirectory(docs)|' ${WRKSRC}/CMakeLists.txt
+.endif
+
post-install:
+.if ${PORT_OPTIONS:MDOCS}
@cd ${WRKSRC}/docs/man/ && \
${FIND} . -type f -and -name "*.3" -exec ${INSTALL_MAN} {} ${PREFIX}/man/man3/{} \;
+.endif
.include <bsd.port.mk>
diff --git a/devel/allegro-devel/pkg-plist b/devel/allegro-devel/pkg-plist
index c7524f973712..e57c10284b17 100644
--- a/devel/allegro-devel/pkg-plist
+++ b/devel/allegro-devel/pkg-plist
@@ -132,28 +132,6 @@ libdata/pkgconfig/allegrogl.pc
libdata/pkgconfig/jpgalleg.pc
libdata/pkgconfig/loadpng.pc
libdata/pkgconfig/logg.pc
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/THANKS
-%%PORTDOCS%%%%DOCSDIR%%/abi.txt
-%%PORTDOCS%%%%DOCSDIR%%/addons.txt
-%%PORTDOCS%%%%DOCSDIR%%/ahack.txt
-%%PORTDOCS%%%%DOCSDIR%%/allegro.txt
-%%PORTDOCS%%%%DOCSDIR%%/api.txt
-%%PORTDOCS%%%%DOCSDIR%%/const.txt
-%%PORTDOCS%%%%DOCSDIR%%/dat.txt
-%%PORTDOCS%%%%DOCSDIR%%/dat2c.txt
-%%PORTDOCS%%%%DOCSDIR%%/dat2s.txt
-%%PORTDOCS%%%%DOCSDIR%%/datafile.txt
-%%PORTDOCS%%%%DOCSDIR%%/faq.txt
-%%PORTDOCS%%%%DOCSDIR%%/grabber.txt
-%%PORTDOCS%%%%DOCSDIR%%/help.txt
-%%PORTDOCS%%%%DOCSDIR%%/license.txt
-%%PORTDOCS%%%%DOCSDIR%%/makedoc.txt
-%%PORTDOCS%%%%DOCSDIR%%/mistakes.txt
-%%PORTDOCS%%%%DOCSDIR%%/packfile.txt
-%%PORTDOCS%%%%DOCSDIR%%/readme.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/allegro/%%SHLIB_VER%%
@dirrm lib/allegro
@dirrm include/allegrogl/GLext