| @@ -1,123 +1,125 @@ | | | @@ -1,123 +1,125 @@ |
1 | # $NetBSD: Makefile,v 1.70 2011/12/07 17:01:58 drochner Exp $ | | 1 | # $NetBSD: Makefile,v 1.71 2012/01/12 16:01:46 hans Exp $ |
2 | | | 2 | |
3 | PKGVER= 2.3.3 | | 3 | PKGVER= 2.3.3 |
4 | DISTNAME= openmotif-${PKGVER} | | 4 | DISTNAME= openmotif-${PKGVER} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 1 |
6 | CATEGORIES= x11 | | 6 | CATEGORIES= x11 |
7 | MASTER_SITES= http://ftp.ics.com/openmotif/2.3/2.3.3/ | | 7 | MASTER_SITES= http://ftp.ics.com/openmotif/2.3/2.3.3/ |
8 | MASTER_SITES+= ftp://ftp.ics.com/openmotif/2.3/2.3.3/ | | 8 | MASTER_SITES+= ftp://ftp.ics.com/openmotif/2.3/2.3.3/ |
9 | | | 9 | |
10 | MAINTAINER= joerg@NetBSD.org | | 10 | MAINTAINER= joerg@NetBSD.org |
11 | HOMEPAGE= http://www.opengroup.org/openmotif/ | | 11 | HOMEPAGE= http://www.opengroup.org/openmotif/ |
12 | COMMENT= The Open Group Motif toolkit for the X Window System | | 12 | COMMENT= The Open Group Motif toolkit for the X Window System |
13 | LICENSE= openmotif-license | | 13 | LICENSE= openmotif-license |
14 | | | 14 | |
15 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 15 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
16 | PKG_DESTDIR_SUPPORT= user-destdir | | 16 | PKG_DESTDIR_SUPPORT= user-destdir |
17 | | | 17 | |
18 | .include "../../mk/bsd.prefs.mk" | | 18 | .include "../../mk/bsd.prefs.mk" |
19 | | | 19 | |
20 | RESTRICTED= Only for Open Source OS; complex terms for commercial distribution. | | 20 | RESTRICTED= Only for Open Source OS; complex terms for commercial distribution. |
21 | | | 21 | |
22 | # License grants permission to reproduce distfile for use on Open | | 22 | # License grants permission to reproduce distfile for use on Open |
23 | # Source OSes. Therefore, do not set NO_SRC_ON_FTP, since the | | 23 | # Source OSes. Therefore, do not set NO_SRC_ON_FTP, since the |
24 | # distfile is thereby provided with the intent of it being used | | 24 | # distfile is thereby provided with the intent of it being used |
25 | # according to the license. Set NO_BIN_ON_FTP if the operating system | | 25 | # according to the license. Set NO_BIN_ON_FTP if the operating system |
26 | # for which the package is built is not known to be open source. | | 26 | # for which the package is built is not known to be open source. |
27 | # List OSes known to be Open Source; default to not acceptable for new ones. | | 27 | # List OSes known to be Open Source; default to not acceptable for new ones. |
28 | OPSYS_OK_LIST= DragonFly FreeBSD Linux NetBSD OpenBSD | | 28 | OPSYS_OK_LIST= DragonFly FreeBSD Linux NetBSD OpenBSD |
29 | .if empty(OPSYS_OK_LIST:M${OPSYS}) | | 29 | .if empty(OPSYS_OK_LIST:M${OPSYS}) |
30 | NO_BIN_ON_FTP= ${RESTRICTED} | | 30 | NO_BIN_ON_FTP= ${RESTRICTED} |
31 | .endif | | 31 | .endif |
32 | | | 32 | |
33 | # NO_*_ON_CDROM: License seems to require indemnification for | | 33 | # NO_*_ON_CDROM: License seems to require indemnification for |
34 | # "commercial product offering", but doesn't define commercial product | | 34 | # "commercial product offering", but doesn't define commercial product |
35 | # offering. Err on the side of caution and mark restricted. | | 35 | # offering. Err on the side of caution and mark restricted. |
36 | NO_SRC_ON_CDROM= ${RESTRICTED} | | 36 | NO_SRC_ON_CDROM= ${RESTRICTED} |
37 | NO_BIN_ON_CDROM= ${RESTRICTED} | | 37 | NO_BIN_ON_CDROM= ${RESTRICTED} |
38 | | | 38 | |
39 | CONFLICTS+= lesstif-[0-9]* | | 39 | CONFLICTS+= lesstif-[0-9]* |
40 | | | 40 | |
41 | USE_LIBTOOL= yes | | 41 | USE_LIBTOOL= yes |
42 | USE_TOOLS+= flex gmake tbl pkg-config | | 42 | USE_TOOLS+= flex gmake tbl pkg-config |
43 | GNU_CONFIGURE= yes | | 43 | GNU_CONFIGURE= yes |
44 | MAKE_JOBS_SAFE= no # PR 37233 | | 44 | MAKE_JOBS_SAFE= no # PR 37233 |
45 | | | 45 | |
| | | 46 | CFLAGS.SunOS+= -Dsun |
| | | 47 | |
46 | SUBST_CLASSES+= man_rename | | 48 | SUBST_CLASSES+= man_rename |
47 | SUBST_STAGE.man_rename= pre-configure | | 49 | SUBST_STAGE.man_rename= pre-configure |
48 | SUBST_MESSAGE.man_rename= Fixing hardcoded paths. | | 50 | SUBST_MESSAGE.man_rename= Fixing hardcoded paths. |
49 | SUBST_FILES.man_rename= doc/man/man3/Makefile.in | | 51 | SUBST_FILES.man_rename= doc/man/man3/Makefile.in |
50 | SUBST_SED.man_rename= -e 's: Core.3: XCore.3:g' | | 52 | SUBST_SED.man_rename= -e 's: Core.3: XCore.3:g' |
51 | SUBST_SED.man_rename+= -e 's: Object.3: XObject.3:g' | | 53 | SUBST_SED.man_rename+= -e 's: Object.3: XObject.3:g' |
52 | SUBST_SED.man_rename+= -e 's: Shell.3: XShell.3:g' | | 54 | SUBST_SED.man_rename+= -e 's: Shell.3: XShell.3:g' |
53 | | | 55 | |
54 | CONFIGURE_ARGS+= \ | | 56 | CONFIGURE_ARGS+= \ |
55 | --enable-jpeg --enable-png \ | | 57 | --enable-jpeg --enable-png \ |
56 | --with-libjpeg-includes=${JPEGBASE}/include \ | | 58 | --with-libjpeg-includes=${JPEGBASE}/include \ |
57 | --with-libjpeg-lib=${JPEGBASE}/lib \ | | 59 | --with-libjpeg-lib=${JPEGBASE}/lib \ |
58 | --with-libpng-includes=${BUILDLINK_PREFIX.png}/include \ | | 60 | --with-libpng-includes=${BUILDLINK_PREFIX.png}/include \ |
59 | --with-libpng-lib=${BUILDLINK_PREFIX.png}/lib \ | | 61 | --with-libpng-lib=${BUILDLINK_PREFIX.png}/lib \ |
60 | --x-libraries=${X11BASE}/lib | | 62 | --x-libraries=${X11BASE}/lib |
61 | | | 63 | |
62 | CONFIGURE_ARGS+= --disable-printing | | 64 | CONFIGURE_ARGS+= --disable-printing |
63 | | | 65 | |
64 | .if ${OPSYS} == "NetBSD" | | 66 | .if ${OPSYS} == "NetBSD" |
65 | CONFIGURE_ENV+= ac_cv_func_setpgrp_void=no | | 67 | CONFIGURE_ENV+= ac_cv_func_setpgrp_void=no |
66 | .endif | | 68 | .endif |
67 | CONFIGURE_ARGS+= --enable-xft | | 69 | CONFIGURE_ARGS+= --enable-xft |
68 | CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS | | 70 | CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS |
69 | | | 71 | |
70 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 72 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
71 | MAKE_FLAGS+= CROSS_COMPILING=yes CC_FOR_BUILD=${NATIVE_CC:Q} \ | | 73 | MAKE_FLAGS+= CROSS_COMPILING=yes CC_FOR_BUILD=${NATIVE_CC:Q} \ |
72 | CPPFLAGS_FOR_BUILD=-I${PREFIX}/include | | 74 | CPPFLAGS_FOR_BUILD=-I${PREFIX}/include |
73 | .endif | | 75 | .endif |
74 | | | 76 | |
75 | # 1) Fix the man pages to refer to the correct sections. | | 77 | # 1) Fix the man pages to refer to the correct sections. |
76 | # 2) Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to | | 78 | # 2) Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to |
77 | # avoid manpage conflicts with other packages. | | 79 | # avoid manpage conflicts with other packages. |
78 | # | | 80 | # |
79 | post-patch: | | 81 | post-patch: |
80 | set -e; \ | | 82 | set -e; \ |
81 | cd ${WRKSRC}/doc/man; \ | | 83 | cd ${WRKSRC}/doc/man; \ |
82 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ | | 84 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ |
83 | ${SED} -e "s|user cmd|1|g" \ | | 85 | ${SED} -e "s|user cmd|1|g" \ |
84 | -e "s|library call|3|g" \ | | 86 | -e "s|library call|3|g" \ |
85 | -e "s|special file|5|g" \ | | 87 | -e "s|special file|5|g" \ |
86 | -e "s|file formats|5|g" \ | | 88 | -e "s|file formats|5|g" \ |
87 | $${manpage} > $${manpage}.fixed; \ | | 89 | $${manpage} > $${manpage}.fixed; \ |
88 | ${MV} -f $${manpage}.fixed $${manpage}; \ | | 90 | ${MV} -f $${manpage}.fixed $${manpage}; \ |
89 | done; \ | | 91 | done; \ |
90 | ${CP} -f man4/mwmrc.4 man5/mwmrc.5 | | 92 | ${CP} -f man4/mwmrc.4 man5/mwmrc.5 |
91 | set -e; \ | | 93 | set -e; \ |
92 | cd ${WRKSRC}/doc/man/man3; \ | | 94 | cd ${WRKSRC}/doc/man/man3; \ |
93 | for name in Core Object Shell; do \ | | 95 | for name in Core Object Shell; do \ |
94 | ${MV} -f $${name}.3 X$${name}.3; \ | | 96 | ${MV} -f $${name}.3 X$${name}.3; \ |
95 | files=`${GREP} -l ".fB$${name}.fP(3)" *.3`; \ | | 97 | files=`${GREP} -l ".fB$${name}.fP(3)" *.3`; \ |
96 | for manpage in $${files}; do \ | | 98 | for manpage in $${files}; do \ |
97 | ${MV} -f $${manpage} $${manpage}.presubst; \ | | 99 | ${MV} -f $${manpage} $${manpage}.presubst; \ |
98 | ${SED} "s|\\(.fB\\)$${name}\\(.fP(3)\\)|\\1X$${name}\\2|g" \ | | 100 | ${SED} "s|\\(.fB\\)$${name}\\(.fP(3)\\)|\\1X$${name}\\2|g" \ |
99 | $${manpage}.presubst > $${manpage}; \ | | 101 | $${manpage}.presubst > $${manpage}; \ |
100 | ${RM} -f $${manpage}.presubst; \ | | 102 | ${RM} -f $${manpage}.presubst; \ |
101 | done; \ | | 103 | done; \ |
102 | done | | 104 | done |
103 | echo "#include <X11/Xos_r.h>" > ${WRKSRC}/lib/Xm/Xmos_r.h | | 105 | echo "#include <X11/Xos_r.h>" > ${WRKSRC}/lib/Xm/Xmos_r.h |
104 | | | 106 | |
105 | # Filter the manpages through tbl. | | 107 | # Filter the manpages through tbl. |
106 | post-build: | | 108 | post-build: |
107 | set -e; \ | | 109 | set -e; \ |
108 | cd ${WRKSRC}/doc/man; \ | | 110 | cd ${WRKSRC}/doc/man; \ |
109 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ | | 111 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ |
110 | ${TBL} $${manpage} > $${manpage}.tblized; \ | | 112 | ${TBL} $${manpage} > $${manpage}.tblized; \ |
111 | ${MV} -f $${manpage}.tblized $${manpage}; \ | | 113 | ${MV} -f $${manpage}.tblized $${manpage}; \ |
112 | done | | 114 | done |
113 | | | 115 | |
114 | .include "../../mk/jpeg.buildlink3.mk" | | 116 | .include "../../mk/jpeg.buildlink3.mk" |
115 | .include "../../graphics/png/buildlink3.mk" | | 117 | .include "../../graphics/png/buildlink3.mk" |
116 | .include "../../x11/libX11/buildlink3.mk" | | 118 | .include "../../x11/libX11/buildlink3.mk" |
117 | .include "../../x11/libXaw/buildlink3.mk" | | 119 | .include "../../x11/libXaw/buildlink3.mk" |
118 | .include "../../x11/libXmu/buildlink3.mk" | | 120 | .include "../../x11/libXmu/buildlink3.mk" |
119 | .include "../../x11/libXext/buildlink3.mk" | | 121 | .include "../../x11/libXext/buildlink3.mk" |
120 | .include "../../x11/libXft/buildlink3.mk" | | 122 | .include "../../x11/libXft/buildlink3.mk" |
121 | .include "../../x11/xbitmaps/buildlink3.mk" | | 123 | .include "../../x11/xbitmaps/buildlink3.mk" |
122 | .include "../../x11/xextproto/buildlink3.mk" | | 124 | .include "../../x11/xextproto/buildlink3.mk" |
123 | .include "../../mk/bsd.pkg.mk" | | 125 | .include "../../mk/bsd.pkg.mk" |