mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
295c6a5bba
Additionally potential rpath problems have been eliminated that will appear when xmlada is built in a staging area (seen and fixed in pkgsrc). This eliminates need for ldconfig, too. PR: ports/178144 Submitted by: John Marino <draco@marino.st>
104 lines
5.0 KiB
Plaintext
104 lines
5.0 KiB
Plaintext
$NetBSD: patch-aa,v 1.4 2011/12/03 07:30:48 marino Exp $
|
|
|
|
--- Makefile.in.orig 2011-10-08 19:19:00.000000000 +0000
|
|
+++ Makefile.in
|
|
@@ -52,10 +52,10 @@ MAKE_ARGS=-XMODE=${MODE} -XLIBRARY_TYPE=
|
|
.PHONY: all obj clean install install_dirs build_library_type install_library_type
|
|
|
|
ifeq (${BUILDS_SHARED},yes)
|
|
-all: static relocatable
|
|
+all: static relocatable docs
|
|
install: install_static install_relocatable
|
|
else
|
|
-all: static
|
|
+all: static docs
|
|
install: install_static
|
|
endif
|
|
|
|
@@ -91,53 +91,50 @@ docs: force
|
|
|
|
# Rule for installing the modules
|
|
%_inst: force
|
|
- ${CP} $*/*.ad[bs] ${includedir}/xmlada
|
|
- cd $*; ls *.ad[bs] > ${libdir}/gnat/xmlada/xmlada_$*.lgpr
|
|
- -cd ${xmllib}; ${CHMOD} ugo+w *.ali
|
|
- -${CP} $*/lib/${LIBRARY_TYPE}/*.ali ${xmllib}
|
|
- ${RM} ${libdir}/libxmlada_$**
|
|
- ${RM} ${xmllib}libxmlada_$**
|
|
+ ${CP} $*/*.ad[bs] ${DESTDIR}${includedir}/xmlada
|
|
+ cd $*; ls *.ad[bs] > ${DESTDIR}${libdir}/gnat/xmlada/xmlada_$*.lgpr
|
|
+ -cd ${DESTDIR}${xmllib}; ${CHMOD} ugo+w *.ali
|
|
+ -${CP} $*/lib/${LIBRARY_TYPE}/*.ali ${DESTDIR}${xmllib}
|
|
+ ${RM} ${DESTDIR}${libdir}/libxmlada_$**
|
|
+ ${RM} ${DESTDIR}${xmllib}libxmlada_$**
|
|
ifeq (${LIBRARY_TYPE},static)
|
|
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.a ${xmllib}
|
|
+ ${INSTALL} -m 644 $*/lib/${LIBRARY_TYPE}/libxmlada_$*.a ${DESTDIR}${xmllib}
|
|
else
|
|
ifeq (${OS},Windows_NT)
|
|
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT} ${xmllib}
|
|
- cd ${bindir}; ${CP} ${libdir}/xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT} libxmlada_$*.${LIBEXT}
|
|
+ ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT} ${DESTDIR}${xmllib}
|
|
+ cd ${DESTDIR}${bindir}; ${CP} ${libdir}/xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT} libxmlada_$*.${LIBEXT}
|
|
else
|
|
- ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} ${xmllib}
|
|
- cd ${xmllib}; ${LN_S} libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}
|
|
- cd ${xmllib}; ${LN_S} libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${basename ${VERSION}}
|
|
- cd ${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${basename ${VERSION}}
|
|
- cd ${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${VERSION}
|
|
+ ${INSTALL} $*/lib/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} ${DESTDIR}${xmllib}
|
|
+ cd ${DESTDIR}${xmllib}; ${LN_S} libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}
|
|
+ cd ${DESTDIR}${xmllib}; ${LN_S} libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${basename ${VERSION}}
|
|
+ cd ${DESTDIR}${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${basename ${VERSION}}
|
|
+ cd ${DESTDIR}${libdir}; ${LN_S} xmlada/${LIBRARY_TYPE}/libxmlada_$*.${LIBEXT}.${VERSION} libxmlada_$*.${LIBEXT}.${VERSION}
|
|
endif
|
|
endif
|
|
- cd ${xmllib}; ${CHMOD} ugo-w *.ali
|
|
+ cd ${DESTDIR}${xmllib}; ${CHMOD} ugo-w *.ali
|
|
|
|
install_dirs: force
|
|
- @${MKDIR} ${bindir}
|
|
- @${MKDIR} ${xmllib}
|
|
- @${MKDIR} ${libdir}/gnat/xmlada
|
|
- @${MKDIR} ${datadir}/doc/xmlada
|
|
- @${MKDIR} ${includedir}/xmlada
|
|
- @${MKDIR} ${datadir}/gps/plug-ins/
|
|
+ @${MKDIR} ${DESTDIR}${bindir}
|
|
+ @${MKDIR} ${DESTDIR}${xmllib}
|
|
+ @${MKDIR} ${DESTDIR}${libdir}/gnat/xmlada
|
|
+ @${MKDIR} ${DESTDIR}${datadir}/doc/xmlada
|
|
+ @${MKDIR} ${DESTDIR}${includedir}/xmlada
|
|
+ @${MKDIR} ${DESTDIR}${datadir}/gps/plug-ins/
|
|
|
|
## Do the installation for either shared or static, depending on
|
|
## $LIBRARY_TYPE
|
|
install_library_type: install_dirs ${MODULE_INSTALL}
|
|
- ${INSTALL} distrib/xmlada_shared.gpr ${libdir}/gnat
|
|
- ${INSTALL} distrib/xmlada.gpr ${libdir}/gnat/
|
|
- ${INSTALL} distrib/xmlada_dom.gpr ${libdir}/gnat/
|
|
- ${INSTALL} distrib/xmlada_sax.gpr ${libdir}/gnat/
|
|
- ${INSTALL} distrib/xmlada_input.gpr ${libdir}/gnat/
|
|
- ${INSTALL} distrib/xmlada_schema.gpr ${libdir}/gnat/
|
|
- ${INSTALL} distrib/xmlada_unicode.gpr ${libdir}/gnat/
|
|
- ${INSTALL} xmlada-config ${bindir}
|
|
- -${INSTALL} docs/xml.ps ${datadir}/doc/xmlada 2>/dev/null
|
|
- -${INSTALL} docs/xml.pdf ${datadir}/doc/xmlada
|
|
- -${INSTALL} docs/xml.html ${datadir}/doc/xmlada
|
|
- -${INSTALL} docs/xml.info ${datadir}/doc/xmlada
|
|
- ${CHMOD} +x ${bindir}/xmlada-config
|
|
- ${INSTALL} distrib/xmlada_gps.py ${datadir}/gps/plug-ins/
|
|
+ ${INSTALL} -m 644 distrib/xmlada_shared.gpr ${DESTDIR}${libdir}/gnat/
|
|
+ ${INSTALL} -m 644 distrib/xmlada.gpr ${DESTDIR}${libdir}/gnat/
|
|
+ ${INSTALL} -m 644 distrib/xmlada_dom.gpr ${DESTDIR}${libdir}/gnat/
|
|
+ ${INSTALL} -m 644 distrib/xmlada_sax.gpr ${DESTDIR}${libdir}/gnat/
|
|
+ ${INSTALL} -m 644 distrib/xmlada_input.gpr ${DESTDIR}${libdir}/gnat/
|
|
+ ${INSTALL} -m 644 distrib/xmlada_schema.gpr ${DESTDIR}${libdir}/gnat/
|
|
+ ${INSTALL} -m 644 distrib/xmlada_unicode.gpr ${DESTDIR}${libdir}/gnat/
|
|
+ ${INSTALL} xmlada-config ${DESTDIR}${bindir}
|
|
+ ${INSTALL} -m 644 docs/xml.html ${DESTDIR}${datadir}/doc/xmlada
|
|
+ ${INSTALL} -m 644 docs/xml.info ${DESTDIR}${datadir}/doc/xmlada
|
|
+ ${INSTALL} -m 644 distrib/xmlada_gps.py ${DESTDIR}${datadir}/gps/plug-ins/
|
|
|
|
## Do the installation for an explicit target
|
|
install_static:
|