| @@ -1,41 +1,42 @@ | | | @@ -1,41 +1,42 @@ |
1 | # $NetBSD: Makefile,v 1.2 2009/06/07 10:50:46 hasso Exp $ | | 1 | # $NetBSD: Makefile,v 1.3 2009/06/08 19:26:29 hasso Exp $ |
2 | | | 2 | |
3 | DISTNAME= xsd-3.2.0+dep | | 3 | DISTNAME= xsd-3.2.0+dep |
4 | EXTRACT_SUFX= .tar.bz2 | | 4 | EXTRACT_SUFX= .tar.bz2 |
5 | PKGNAME= xsd-3.2.0 | | 5 | PKGNAME= xsd-3.2.0 |
6 | CATEGORIES= devel textproc | | 6 | CATEGORIES= devel textproc |
7 | MASTER_SITES= http://www.codesynthesis.com/download/xsd/3.2/ | | 7 | MASTER_SITES= http://www.codesynthesis.com/download/xsd/3.2/ |
8 | | | 8 | |
9 | MAINTAINER= hasso@NetBSD.org | | 9 | MAINTAINER= hasso@NetBSD.org |
10 | HOMEPAGE= http://www.codesynthesis.com/products/xsd/ | | 10 | HOMEPAGE= http://www.codesynthesis.com/products/xsd/ |
11 | COMMENT= W3C XML Schema to C++ data binding compiler | | 11 | COMMENT= W3C XML Schema to C++ data binding compiler |
| | | 12 | LICENSE= gnu-gpl-v2 |
12 | | | 13 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 15 | |
15 | USE_TOOLS+= bash gmake gm4 | | 16 | USE_TOOLS+= bash gmake gm4 |
16 | USE_LANGUAGES+= c++ | | 17 | USE_LANGUAGES+= c++ |
17 | | | 18 | |
18 | SUBST_CLASSES+= boost | | 19 | SUBST_CLASSES+= boost |
19 | SUBST_STAGE.boost= post-configure | | 20 | SUBST_STAGE.boost= post-configure |
20 | SUBST_FILES.boost= */*/*/*/*/stub.make | | 21 | SUBST_FILES.boost= */*/*/*/*/stub.make |
21 | SUBST_SED.boost= -e 's|-lboost_date_time|-lboost_date_time-mt|g' | | 22 | SUBST_SED.boost= -e 's|-lboost_date_time|-lboost_date_time-mt|g' |
22 | SUBST_SED.boost+= -e 's|-lboost_filesystem|-lboost_filesystem-mt|g' | | 23 | SUBST_SED.boost+= -e 's|-lboost_filesystem|-lboost_filesystem-mt|g' |
23 | SUBST_SED.boost+= -e 's|-lboost_regex|-lboost_regex-mt|g' | | 24 | SUBST_SED.boost+= -e 's|-lboost_regex|-lboost_regex-mt|g' |
24 | SUBST_SED.boost+= -e 's|-lboost_serialization|-lboost_serialization-mt|g' | | 25 | SUBST_SED.boost+= -e 's|-lboost_serialization|-lboost_serialization-mt|g' |
25 | | | 26 | |
26 | SUBST_CLASSES+= rpath | | 27 | SUBST_CLASSES+= rpath |
27 | SUBST_STAGE.rpath= post-configure | | 28 | SUBST_STAGE.rpath= post-configure |
28 | SUBST_FILES.rpath= */*/*/configuration-dynamic.make | | 29 | SUBST_FILES.rpath= */*/*/configuration-dynamic.make |
29 | SUBST_SED.rpath= -e 's|cxx_rpath[ ]*:=[ ]*n|cxx_rpath := y|g' | | 30 | SUBST_SED.rpath= -e 's|cxx_rpath[ ]*:=[ ]*n|cxx_rpath := y|g' |
30 | | | 31 | |
31 | do-build: | | 32 | do-build: |
32 | # XXX: rapth needs a better hack. TODO: add optimization | | 33 | # XXX: rapth needs a better hack. TODO: add optimization |
33 | cd ${WRKSRC} && LDFLAGS="-rpath ${PREFIX}/lib" ./build.sh | | 34 | cd ${WRKSRC} && LDFLAGS="-rpath ${PREFIX}/lib" ./build.sh |
34 | | | 35 | |
35 | do-install: | | 36 | do-install: |
36 | cd ${WRKSRC} && MAKEFLAGS="install_prefix=${DESTDIR}${PREFIX} \ | | 37 | cd ${WRKSRC} && MAKEFLAGS="install_prefix=${DESTDIR}${PREFIX} \ |
37 | install_man_dir=${DESTDIR}${PREFIX}/man" ./build.sh install | | 38 | install_man_dir=${DESTDIR}${PREFIX}/man" ./build.sh install |
38 | | | 39 | |
39 | .include "../../devel/boost-libs/buildlink3.mk" | | 40 | .include "../../devel/boost-libs/buildlink3.mk" |
40 | .include "../../textproc/xerces-c/buildlink3.mk" | | 41 | .include "../../textproc/xerces-c/buildlink3.mk" |
41 | .include "../../mk/bsd.pkg.mk" | | 42 | .include "../../mk/bsd.pkg.mk" |