summaryrefslogtreecommitdiff
path: root/textproc/xmlada/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/xmlada/Makefile')
-rw-r--r--textproc/xmlada/Makefile31
1 files changed, 17 insertions, 14 deletions
diff --git a/textproc/xmlada/Makefile b/textproc/xmlada/Makefile
index cfc5c559134..065b34ab349 100644
--- a/textproc/xmlada/Makefile
+++ b/textproc/xmlada/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2011/12/03 07:30:48 marino Exp $
+# $NetBSD: Makefile,v 1.4 2012/07/08 20:03:08 marino Exp $
#
DISTNAME= xmlada-${XMLADA_VERS}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://downloads.dragonlace.net/src/ \
http://dragonlace.mirrors.ada.cx/src/
@@ -16,20 +16,23 @@ LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
XMLADA_VERS= 4.2.0.0
GNU_CONFIGURE= yes
-USE_LANGUAGES= c # ada is not valid enumeration
+USE_LANGUAGES= c ada
USE_TOOLS= gmake makeinfo
MAKE_JOBS_SAFE= no
-# no special configuration options necessary
-pre-configure:
- # explicitly request GNAT-AUX compiler
- # It is done here to fool tough pkgscr compiler checks
- ${SETENV} CC=gnatgcc
+# Link options were added for the sax, dom, schema, and input_sources libraries
+# "-R" option disables all rpaths except adalib and compiler libs. This is
+# done because by default the rpaths will points at the WRKOBJDIR because
+# it doesn't support the concept of DESTDIR.
+# "-Wl,-R" adds a second rpath string.
+# -Wl,-rpath is a better choice, but synonym -Wl,-R works on all BSD and SunOS
+SUBST_CLASSES+= rpath
+SUBST_STAGE.rpath= pre-configure
+SUBST_MESSAGE.rpath= Adjust rpaths of shared libraries
+SUBST_FILES.rpath= sax/sax.gpr
+SUBST_FILES.rpath+= dom/dom.gpr
+SUBST_FILES.rpath+= input_sources/input_sources.gpr
+SUBST_FILES.rpath+= schema/schema.gpr
+SUBST_SED.rpath= -e "s,@ADDITIONAL_RPATH@,${PREFIX}/lib,"
-post-wrapper:
- # We disable at least the wrapper binaries on all GNAT AUX ports to
- # avoid potential linkage problems
- ${RM} ${WRKDIR}/.wrapper/bin/*
-
-.include "../../lang/gnat-aux/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"