aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-10-17 04:14:47 +0800
committerbrooks <brooks@FreeBSD.org>2013-10-17 04:14:47 +0800
commite2116810ad9db33f167d46d8cf446a128df6ac1e (patch)
tree4e132d293f9a75ee92e1d080e934b50f9df1bad3 /lang
parent8e876d9f607c7fa69d486f7614e140861bffc5d2 (diff)
downloadfreebsd-ports-gnome-e2116810ad9db33f167d46d8cf446a128df6ac1e.tar.gz
freebsd-ports-gnome-e2116810ad9db33f167d46d8cf446a128df6ac1e.tar.zst
freebsd-ports-gnome-e2116810ad9db33f167d46d8cf446a128df6ac1e.zip
Don't try building on libc++ systems, it won't work.
Deconflict docs between master and slave ports. STAGIFY
Diffstat (limited to 'lang')
-rw-r--r--lang/dragonegg46-33/Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/lang/dragonegg46-33/Makefile b/lang/dragonegg46-33/Makefile
index 504d544aac2e..8737ecfe3bff 100644
--- a/lang/dragonegg46-33/Makefile
+++ b/lang/dragonegg46-33/Makefile
@@ -2,6 +2,7 @@
PORTNAME= dragonegg
PORTVERSION= 3.3
+PORTREVISION= 1
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
PKGNAMESUFFIX= ${USE_GCC:S/.//g}-${LLVM_SUFFIX}
@@ -20,10 +21,11 @@ LLVM_SUFFIX= ${PORTVERSION:S/.//g}
OPTIONS_DEFINE= DOCS
-USES= gmake
+USES= compiler:features gmake
USE_GCC?= 4.6
USE_LDCONFIG= yes
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
+UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX}
DRAGONEGG_RELEASE= ${PORTVERSION:C/\.r[0-9]*//}
DRAGONEGG_SO= dragonegg-${DRAGONEGG_RELEASE}.so
@@ -31,17 +33,22 @@ DRAGONEGG_PATH= ${GCC_LIBDIR}/${DRAGONEGG_SO}
GCC_LIBDIR= lib/${CC}
ALL_TARGET=
-MAKE_ARGS= GCC=${LOCALBASE}/bin/${CC} LLVM_CONFIG=llvm-config33
+MAKE_ARGS= GCC=${LOCALBASE}/bin/${CC} LLVM_CONFIG=llvm-config${LLVM_SUFFIX}
PLIST_FILES= ${GCC_LIBDIR}/${DRAGONEGG_SO}
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= README
.endif
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_FEATURES:Mlibc++}
+IGNORE= "Dragonegg can't work if LLVM was built with libc++"
+.endif
+
post-patch:
${REINPLACE_CMD} -e 's/%%CC%%/${CC}/' \
-e 's#%%PLUGINPATH%%#${LOCALBASE}/${DRAGONEGG_PATH}#' \
@@ -49,11 +56,12 @@ post-patch:
${WRKSRC}/README
do-install:
+ ${MKDIR} ${STAGEDIR}${LOCALBASE}/${GCC_LIBDIR}
${INSTALL_LIB} ${WRKSRC}/dragonegg.so \
- ${LOCALBASE}/${GCC_LIBDIR}/${DRAGONEGG_SO}
+ ${STAGEDIR}${LOCALBASE}/${GCC_LIBDIR}/${DRAGONEGG_SO}
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
test:
@@ -64,4 +72,4 @@ test:
${FALSE} ;\
fi
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>