aboutsummaryrefslogtreecommitdiff
path: root/textproc/etoile-ogrekit
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2009-02-24 18:01:29 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2009-02-24 18:01:29 +0000
commit1be10588a377aabcc3b1078714badade12149fef (patch)
tree6f83453013044e4d2774af389572051cd6a72e21 /textproc/etoile-ogrekit
parent4b6e89f88937c8a7a2b76c842aea8a8108e5b006 (diff)
Notes
Diffstat (limited to 'textproc/etoile-ogrekit')
-rw-r--r--textproc/etoile-ogrekit/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/textproc/etoile-ogrekit/Makefile b/textproc/etoile-ogrekit/Makefile
index 743c75ea216f..56b2c0305c9e 100644
--- a/textproc/etoile-ogrekit/Makefile
+++ b/textproc/etoile-ogrekit/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ogrekit
PORTVERSION= 0.4.0
+PORTREVISION= 1
CATEGORIES= textproc gnustep
MASTER_SITES= http://download.gna.org/etoile/
PKGNAMEPREFIX= etoile-
@@ -15,8 +16,6 @@ DISTNAME= etoile-${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Etoile Project OgreKit framework
-LIB_DEPENDS= onig:${PORTSDIR}/${ONIGURUMA4_PORT}
-
USE_BZIP2= yes
USE_GNUSTEP= yes
USE_GNUSTEP_PREFIX= yes
@@ -25,12 +24,23 @@ USE_GNUSTEP_BUILD= yes
USE_GNUSTEP_INSTALL= yes
USE_GNUSTEP_LDCONFIG= ${GNUSTEP_LOCAL_LIBRARIES}
+OPTIONS= ONIGURUMA4 "build with oniguruma4 instead of oniguruma5" OFF
+
DEFAULT_LIBVERSION= 1.2.1
WRKSRC= ${WRKDIR}/Etoile-${PORTVERSION}
USE_GNUSTEP_MAKE_DIRS+= Frameworks/OgreKit
-ADDITIONAL_OBJCFLAGS+= -DONIGURUMA_4
UNITKIT_PORT?= devel/etoile-unitkit
ONIGURUMA4_PORT?= devel/oniguruma4
+ONIGURUMA5_PORT?= devel/oniguruma5
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ONIGURUMA4)
+ADDITIONAL_OBJCFLAGS+= -DONIGURUMA_4
+LIB_DEPENDS+= onig:${PORTSDIR}/${ONIGURUMA4_PORT}
+.else
+LIB_DEPENDS+= onig:${PORTSDIR}/${ONIGURUMA5_PORT}
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>