| @@ -1,113 +1,115 @@ | | | @@ -1,113 +1,115 @@ |
1 | # $NetBSD: Makefile,v 1.8 2013/06/06 12:53:40 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.9 2013/06/07 15:57:47 ryoon Exp $ |
2 | | | 2 | |
3 | PKGVER= 2.3.4 | | 3 | PKGVER= 2.3.4 |
4 | PKGREVISION= 6 | | 4 | PKGREVISION= 6 |
5 | DISTNAME= motif-${PKGVER}-src | | 5 | DISTNAME= motif-${PKGVER}-src |
6 | PKGNAME= motif-${PKGVER} | | 6 | PKGNAME= motif-${PKGVER} |
7 | CATEGORIES= x11 | | 7 | CATEGORIES= x11 |
8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=motif/} | | 8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=motif/} |
9 | EXTRACT_SUFX= .tgz | | 9 | EXTRACT_SUFX= .tgz |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://motif.ics.com/ | | 12 | HOMEPAGE= http://motif.ics.com/ |
13 | COMMENT= LGPLed Motif toolkit for the X Window System | | 13 | COMMENT= LGPLed Motif toolkit for the X Window System |
14 | LICENSE= gnu-lgpl-v2.1 | | 14 | LICENSE= gnu-lgpl-v2.1 |
15 | | | 15 | |
16 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 16 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
17 | | | 17 | |
18 | WRKSRC= ${WRKDIR}/motif-${PKGVER} | | 18 | WRKSRC= ${WRKDIR}/motif-${PKGVER} |
19 | | | 19 | |
20 | .include "../../mk/bsd.prefs.mk" | | 20 | .include "../../mk/bsd.prefs.mk" |
21 | | | 21 | |
22 | CONFLICTS+= lesstif-[0-9]* openmotif-[0-9]* | | 22 | CONFLICTS+= lesstif-[0-9]* openmotif-[0-9]* |
23 | | | 23 | |
24 | USE_LIBTOOL= yes | | 24 | USE_LIBTOOL= yes |
25 | USE_TOOLS+= flex gmake tbl pkg-config automake yacc | | 25 | USE_TOOLS+= flex gmake tbl pkg-config automake yacc |
26 | GNU_CONFIGURE= yes | | 26 | GNU_CONFIGURE= yes |
27 | MAKE_JOBS_SAFE= no # PR 37233 | | 27 | MAKE_JOBS_SAFE= no # PR 37233 |
28 | | | 28 | |
29 | CFLAGS.SunOS+= -Dsun | | 29 | CFLAGS.SunOS+= -Dsun |
30 | | | 30 | |
31 | SUBST_CLASSES+= man_rename | | 31 | SUBST_CLASSES+= man_rename |
32 | SUBST_STAGE.man_rename= pre-configure | | 32 | SUBST_STAGE.man_rename= pre-configure |
33 | SUBST_MESSAGE.man_rename= Fixing hardcoded paths. | | 33 | SUBST_MESSAGE.man_rename= Fixing hardcoded paths. |
34 | SUBST_FILES.man_rename= doc/man/man3/Makefile.in | | 34 | SUBST_FILES.man_rename= doc/man/man3/Makefile.in |
35 | SUBST_SED.man_rename= -e 's: Core.3: XCore.3:g' | | 35 | SUBST_SED.man_rename= -e 's: Core.3: XCore.3:g' |
36 | SUBST_SED.man_rename+= -e 's: Object.3: XObject.3:g' | | 36 | SUBST_SED.man_rename+= -e 's: Object.3: XObject.3:g' |
37 | SUBST_SED.man_rename+= -e 's: Shell.3: XShell.3:g' | | 37 | SUBST_SED.man_rename+= -e 's: Shell.3: XShell.3:g' |
38 | | | 38 | |
39 | CONFIGURE_ARGS+= \ | | 39 | CONFIGURE_ARGS+= \ |
40 | --enable-jpeg --enable-png \ | | 40 | --enable-jpeg --enable-png \ |
41 | --with-libjpeg-includes=${JPEGBASE}/include \ | | 41 | --with-libjpeg-includes=${JPEGBASE}/include \ |
42 | --with-libjpeg-lib=${JPEGBASE}/lib \ | | 42 | --with-libjpeg-lib=${JPEGBASE}/lib \ |
43 | --with-libpng-includes=${BUILDLINK_PREFIX.png}/include \ | | 43 | --with-libpng-includes=${BUILDLINK_PREFIX.png}/include \ |
44 | --with-libpng-lib=${BUILDLINK_PREFIX.png}/lib \ | | 44 | --with-libpng-lib=${BUILDLINK_PREFIX.png}/lib \ |
45 | --x-libraries=${X11BASE}/lib | | 45 | --x-libraries=${X11BASE}/lib |
46 | | | 46 | |
47 | CONFIGURE_ARGS+= --disable-printing | | 47 | CONFIGURE_ARGS+= --disable-printing |
48 | | | 48 | |
| | | 49 | BUILDLINK_TRANSFORM+= l:Xft:Xft:fontconfig |
| | | 50 | |
49 | # Don't compress manual pages as they include each other. | | 51 | # Don't compress manual pages as they include each other. |
50 | .undef MANZ | | 52 | .undef MANZ |
51 | | | 53 | |
52 | .if ${OPSYS} == "NetBSD" | | 54 | .if ${OPSYS} == "NetBSD" |
53 | CONFIGURE_ENV+= ac_cv_func_setpgrp_void=no | | 55 | CONFIGURE_ENV+= ac_cv_func_setpgrp_void=no |
54 | .endif | | 56 | .endif |
55 | CONFIGURE_ARGS+= --enable-xft | | 57 | CONFIGURE_ARGS+= --enable-xft |
56 | CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS | | 58 | CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS |
57 | | | 59 | |
58 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 60 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
59 | MAKE_FLAGS+= CROSS_COMPILING=yes CC_FOR_BUILD=${NATIVE_CC:Q} \ | | 61 | MAKE_FLAGS+= CROSS_COMPILING=yes CC_FOR_BUILD=${NATIVE_CC:Q} \ |
60 | CPPFLAGS_FOR_BUILD=-I${PREFIX}/include | | 62 | CPPFLAGS_FOR_BUILD=-I${PREFIX}/include |
61 | .endif | | 63 | .endif |
62 | | | 64 | |
63 | # 1) Fix the man pages to refer to the correct sections. | | 65 | # 1) Fix the man pages to refer to the correct sections. |
64 | # 2) Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to | | 66 | # 2) Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to |
65 | # avoid manpage conflicts with other packages. | | 67 | # avoid manpage conflicts with other packages. |
66 | # | | 68 | # |
67 | post-patch: | | 69 | post-patch: |
68 | set -e; \ | | 70 | set -e; \ |
69 | cd ${WRKSRC}/doc/man; \ | | 71 | cd ${WRKSRC}/doc/man; \ |
70 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ | | 72 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ |
71 | ${SED} -e "s|user cmd|1|g" \ | | 73 | ${SED} -e "s|user cmd|1|g" \ |
72 | -e "s|library call|3|g" \ | | 74 | -e "s|library call|3|g" \ |
73 | -e "s|special file|5|g" \ | | 75 | -e "s|special file|5|g" \ |
74 | -e "s|file formats|5|g" \ | | 76 | -e "s|file formats|5|g" \ |
75 | $${manpage} > $${manpage}.fixed; \ | | 77 | $${manpage} > $${manpage}.fixed; \ |
76 | ${MV} -f $${manpage}.fixed $${manpage}; \ | | 78 | ${MV} -f $${manpage}.fixed $${manpage}; \ |
77 | done; \ | | 79 | done; \ |
78 | ${CP} -f man4/mwmrc.4 man5/mwmrc.5 | | 80 | ${CP} -f man4/mwmrc.4 man5/mwmrc.5 |
79 | set -e; \ | | 81 | set -e; \ |
80 | cd ${WRKSRC}/doc/man/man3; \ | | 82 | cd ${WRKSRC}/doc/man/man3; \ |
81 | for name in Core Object Shell; do \ | | 83 | for name in Core Object Shell; do \ |
82 | ${MV} -f $${name}.3 X$${name}.3; \ | | 84 | ${MV} -f $${name}.3 X$${name}.3; \ |
83 | files=`${GREP} -l ".fB$${name}.fP(3)" *.3`; \ | | 85 | files=`${GREP} -l ".fB$${name}.fP(3)" *.3`; \ |
84 | for manpage in $${files}; do \ | | 86 | for manpage in $${files}; do \ |
85 | ${MV} -f $${manpage} $${manpage}.presubst; \ | | 87 | ${MV} -f $${manpage} $${manpage}.presubst; \ |
86 | ${SED} "s|\\(.fB\\)$${name}\\(.fP(3)\\)|\\1X$${name}\\2|g" \ | | 88 | ${SED} "s|\\(.fB\\)$${name}\\(.fP(3)\\)|\\1X$${name}\\2|g" \ |
87 | $${manpage}.presubst > $${manpage}; \ | | 89 | $${manpage}.presubst > $${manpage}; \ |
88 | ${RM} -f $${manpage}.presubst; \ | | 90 | ${RM} -f $${manpage}.presubst; \ |
89 | done; \ | | 91 | done; \ |
90 | done | | 92 | done |
91 | ${ECHO} "#include <X11/Xos_r.h>" > ${WRKSRC}/lib/Xm/Xmos_r.h | | 93 | ${ECHO} "#include <X11/Xos_r.h>" > ${WRKSRC}/lib/Xm/Xmos_r.h |
92 | | | 94 | |
93 | pre-configure: | | 95 | pre-configure: |
94 | set -e; cd ${WRKSRC} ; sh ./autogen.sh | | 96 | set -e; cd ${WRKSRC} ; sh ./autogen.sh |
95 | | | 97 | |
96 | # Filter the manpages through tbl. | | 98 | # Filter the manpages through tbl. |
97 | post-build: | | 99 | post-build: |
98 | set -e; \ | | 100 | set -e; \ |
99 | cd ${WRKSRC}/doc/man; \ | | 101 | cd ${WRKSRC}/doc/man; \ |
100 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ | | 102 | for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \ |
101 | ${TBL} $${manpage} > $${manpage}.tblized; \ | | 103 | ${TBL} $${manpage} > $${manpage}.tblized; \ |
102 | ${MV} -f $${manpage}.tblized $${manpage}; \ | | 104 | ${MV} -f $${manpage}.tblized $${manpage}; \ |
103 | done | | 105 | done |
104 | | | 106 | |
105 | .include "../../mk/jpeg.buildlink3.mk" | | 107 | .include "../../mk/jpeg.buildlink3.mk" |
106 | .include "../../graphics/png/buildlink3.mk" | | 108 | .include "../../graphics/png/buildlink3.mk" |
107 | .include "../../x11/libX11/buildlink3.mk" | | 109 | .include "../../x11/libX11/buildlink3.mk" |
108 | .include "../../x11/libXaw/buildlink3.mk" | | 110 | .include "../../x11/libXaw/buildlink3.mk" |
109 | .include "../../x11/libXmu/buildlink3.mk" | | 111 | .include "../../x11/libXmu/buildlink3.mk" |
110 | .include "../../x11/libXext/buildlink3.mk" | | 112 | .include "../../x11/libXext/buildlink3.mk" |
111 | .include "../../x11/libXft/buildlink3.mk" | | 113 | .include "../../x11/libXft/buildlink3.mk" |
112 | .include "../../x11/xbitmaps/buildlink3.mk" | | 114 | .include "../../x11/xbitmaps/buildlink3.mk" |
113 | .include "../../mk/bsd.pkg.mk" | | 115 | .include "../../mk/bsd.pkg.mk" |