| @@ -1,16 +1,17 @@ | | | @@ -1,16 +1,17 @@ |
1 | # $NetBSD: Makefile.common,v 1.62 2008/06/16 14:55:03 hauke Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.63 2008/06/17 08:32:41 hauke Exp $ |
2 | | | 2 | |
3 | DISTNAME= icewm-1.2.35 | | 3 | DISTNAME= icewm-1.2.35 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= x11 wm | | 5 | CATEGORIES= x11 wm |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=icewm/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=icewm/} |
6 | | | 7 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= http://www.icewm.org/ | | 9 | HOMEPAGE= http://www.icewm.org/ |
9 | | | 10 | |
10 | GNU_CONFIGURE= yes | | 11 | GNU_CONFIGURE= yes |
11 | USE_TOOLS+= gmake msgfmt | | 12 | USE_TOOLS+= gmake msgfmt |
12 | USE_PKGLOCALEDIR= yes | | 13 | USE_PKGLOCALEDIR= yes |
13 | | | 14 | |
14 | DISTINFO_FILE= ${.CURDIR}/../../wm/icewm/distinfo | | 15 | DISTINFO_FILE= ${.CURDIR}/../../wm/icewm/distinfo |
15 | FILESDIR= ${.CURDIR}/../../wm/icewm/files | | 16 | FILESDIR= ${.CURDIR}/../../wm/icewm/files |
16 | PATCHDIR= ${.CURDIR}/../../wm/icewm/patches | | 17 | PATCHDIR= ${.CURDIR}/../../wm/icewm/patches |
| @@ -25,30 +26,26 @@ PKG_SYSCONFSUBDIR= icewm | | | @@ -25,30 +26,26 @@ PKG_SYSCONFSUBDIR= icewm |
25 | .include "../../mk/bsd.prefs.mk" | | 26 | .include "../../mk/bsd.prefs.mk" |
26 | | | 27 | |
27 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 28 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
28 | CONFIGURE_ARGS+= --with-cfgdir=${PKG_SYSCONFDIR:Q} | | 29 | CONFIGURE_ARGS+= --with-cfgdir=${PKG_SYSCONFDIR:Q} |
29 | .if ${X11_TYPE} != "native" | | 30 | .if ${X11_TYPE} != "native" |
30 | .include "../../x11/libXinerama/buildlink3.mk" | | 31 | .include "../../x11/libXinerama/buildlink3.mk" |
31 | .elif !exists(${X11BASE}/include/X11/extensions/Xinerama.h) | | 32 | .elif !exists(${X11BASE}/include/X11/extensions/Xinerama.h) |
32 | CONFIGURE_ARGS+= --disable-xinerama | | 33 | CONFIGURE_ARGS+= --disable-xinerama |
33 | .endif | | 34 | .endif |
34 | MAKE_FLAGS+= LOCDIR=${PREFIX}/${PKGLOCALEDIR}/locale | | 35 | MAKE_FLAGS+= LOCDIR=${PREFIX}/${PKGLOCALEDIR}/locale |
35 | | | 36 | |
36 | PKG_SYSCONFSUBDIR= icewm | | 37 | PKG_SYSCONFSUBDIR= icewm |
37 | | | 38 | |
38 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" | | | |
39 | CXXFLAGS+= -DSTART_PIXMAP="\"bsd-daemon.xpm\"" | | | |
40 | .endif | | | |
41 | | | | |
42 | .if ${OPSYS} == "NetBSD" && (!exists(/usr/include/machine/apmvar.h) || \ | | 39 | .if ${OPSYS} == "NetBSD" && (!exists(/usr/include/machine/apmvar.h) || \ |
43 | (${MACHINE_ARCH} == "sparc64" && !exists(/usr/include/sparc/apmvar.h))) | | 40 | (${MACHINE_ARCH} == "sparc64" && !exists(/usr/include/sparc/apmvar.h))) |
44 | SUBST_CLASSES+= apm | | 41 | SUBST_CLASSES+= apm |
45 | SUBST_STAGE.apm= post-configure | | 42 | SUBST_STAGE.apm= post-configure |
46 | SUBST_FILES.apm= src/config.h | | 43 | SUBST_FILES.apm= src/config.h |
47 | SUBST_SED.apm= -e 's,define CONFIG_APPLET_APM 1,undef CONFIG_APPLET_APM,' | | 44 | SUBST_SED.apm= -e 's,define CONFIG_APPLET_APM 1,undef CONFIG_APPLET_APM,' |
48 | SUBST_MESSAGE.apm= Disable APM applet. | | 45 | SUBST_MESSAGE.apm= Disable APM applet. |
49 | .endif | | 46 | .endif |
50 | | | 47 | |
51 | .if ${OPSYS} == "NetBSD" | | 48 | .if ${OPSYS} == "NetBSD" |
52 | . if !empty(OS_VERSION:M1.*) | | 49 | . if !empty(OS_VERSION:M1.*) |
53 | CONFIGURE_ARGS+= --disable-i18n | | 50 | CONFIGURE_ARGS+= --disable-i18n |
54 | . else | | 51 | . else |