Annotation of pkgsrc/x11/wxGTK28/Makefile.common, Revision 1.21
1.21 ! tnn 1: # $NetBSD: Makefile.common,v 1.20 2020/01/26 17:32:27 rillig Exp $
1.1 joerg 2: #
1.3 tnn 3: # used by x11/wxGTK28/Makefile
1.8 wiz 4: # used by x11/wxGTK28-contrib/Makefile
1.1 joerg 5:
1.15 ryoon 6: DISTNAME= wxGTK-2.8.12
1.1 joerg 7: CATEGORIES= x11
8: MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wxwindows/}
9: EXTRACT_SUFX= .tar.bz2
10:
11: MAINTAINER= joerg@NetBSD.org
1.20 rillig 12: HOMEPAGE= https://www.wxwidgets.org/
1.1 joerg 13:
14: PATCHDIR= ${.CURDIR}/../../x11/wxGTK28/patches
15: DISTINFO_FILE= ${.CURDIR}/../../x11/wxGTK28/distinfo
16:
17: PATCHFILES= ${DISTNAME}-libtool.diff.bz2
18: PATCH_SITES= ${MASTER_SITE_LOCAL}
1.2 joerg 19: PATCH_DIST_STRIP.${DISTNAME}-libtool.diff.bz2= -p1
1.1 joerg 20:
21: USE_TOOLS+= pkg-config msgfmt
22: USE_LIBTOOL= yes
23: USE_LANGUAGES= c c++
24: GNU_CONFIGURE= YES
25: USE_GNU_CONFIGURE_HOST= no
26: CONFIGURE_ARGS+= --with-gtk=2
27: CONFIGURE_ARGS+= --with-libjpeg=sys
28: CONFIGURE_ARGS+= --with-libpng=sys
29: CONFIGURE_ARGS+= --with-libtiff=sys
30: CONFIGURE_ARGS+= --with-opengl
1.5 taca 31: CONFIGURE_ARGS+= --with-expat=sys
1.1 joerg 32: CONFIGURE_ARGS+= --with-zlib=sys
33: CONFIGURE_ARGS+= --with-regex=builtin
1.11 drochner 34: CONFIGURE_ARGS+= --enable-mediactrl
1.16 bouyer 35: CONFIGURE_ARGS+= --enable-graphics_ctx
1.17 dbj 36: CONFIGURE_ARGS+= --bindir=${PREFIX}/libexec/wx-2.8
37: CONFIGURE_ARGS+= --datadir=${PREFIX}/share/wx-2.8
1.1 joerg 38:
1.17 dbj 39: DOCDIR= ${PREFIX}/share/wx-2.8/doc/wxGTK
1.1 joerg 40:
1.13 dholland 41: CONFIGURE_DIRS= build-non-unicode build-unicode
1.2 joerg 42:
43: #CONFIGURE_ARGS+= --enable-debug
1.19 rillig 44: #PLIST_SUBST+= DEBUG_LIB=d DEBUG_CONFIG=-config
1.2 joerg 45:
46: PLIST_SUBST+= DEBUG_LIB= DEBUG_CONFIG=-release
47:
1.3 tnn 48: SUBST_CLASSES+= fix-paths
49: SUBST_STAGE.fix-paths= pre-configure
50: SUBST_MESSAGE.fix-paths= Fixing absolute paths.
51: SUBST_FILES.fix-paths= configure
1.4 tnn 52: SUBST_SED.fix-paths= -e 's,/usr/pkg/include,${PREFIX}/include,g'
1.19 rillig 53: SUBST_VARS.fix-paths= PREFIX
1.17 dbj 54: SUBST_SED.fix-paths+= -e 's,/usr/X11/,${X11BASE}/,g'
1.3 tnn 55:
1.21 ! tnn 56: .include "../../x11/wxGTK28/options.mk"
! 57:
1.2 joerg 58: pre-configure:
59: mkdir ${WRKSRC}/build-non-unicode ${WRKSRC}/build-unicode
1.13 dholland 60: printf '#!%s\n../configure --enable-unicode "$$@"' ${SH} \
1.2 joerg 61: > ${WRKSRC}/build-unicode/configure
1.13 dholland 62: printf '#!%s\n../configure --disable-unicode "$$@"' ${SH} \
1.2 joerg 63: > ${WRKSRC}/build-non-unicode/configure
64:
1.1 joerg 65: .include "../../devel/gettext-lib/buildlink3.mk"
66: .include "../../devel/zlib/buildlink3.mk"
67: .include "../../graphics/MesaLib/buildlink3.mk"
68: .include "../../graphics/glu/buildlink3.mk"
1.7 dsainty 69: .include "../../mk/jpeg.buildlink3.mk"
1.1 joerg 70: .include "../../graphics/png/buildlink3.mk"
71: .include "../../graphics/tiff/buildlink3.mk"
1.5 taca 72: .include "../../textproc/expat/buildlink3.mk"
1.1 joerg 73: .include "../../x11/gtk2/buildlink3.mk"
1.9 dholland 74: .include "../../devel/glib2/buildlink3.mk"
1.1 joerg 75: .include "../../x11/libSM/buildlink3.mk"
1.6 dsainty 76: .include "../../x11/libXxf86vm/buildlink3.mk"
1.1 joerg 77:
78: .include "../../mk/pthread.buildlink3.mk"
CVSweb <webmaster@jp.NetBSD.org>