[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / wxGTK28

File: [cvs.NetBSD.org] / pkgsrc / x11 / wxGTK28 / Makefile.common (download)

Revision 1.23, Wed Nov 9 13:14:24 2022 UTC (2 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.22: +2 -2 lines

Reset MAINTAINER

# $NetBSD: Makefile.common,v 1.23 2022/11/09 13:14:24 joerg Exp $
#
# used by x11/wxGTK28/Makefile
# used by x11/wxGTK28-contrib/Makefile

DISTNAME=		wxGTK-2.8.12
CATEGORIES=		x11
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=wxwindows/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://www.wxwidgets.org/

PATCHDIR=		${.CURDIR}/../../x11/wxGTK28/patches
DISTINFO_FILE=		${.CURDIR}/../../x11/wxGTK28/distinfo

PATCHFILES=		${DISTNAME}-libtool.diff.bz2
PATCH_SITES=		${MASTER_SITE_LOCAL}
PATCH_DIST_STRIP.${DISTNAME}-libtool.diff.bz2= -p1

USE_TOOLS+=		pkg-config msgfmt
USE_LIBTOOL=		yes
USE_LANGUAGES=		c c++
GNU_CONFIGURE=		YES
USE_GNU_CONFIGURE_HOST=	no
CONFIGURE_ARGS+=	--with-gtk=2
CONFIGURE_ARGS+=	--with-libjpeg=sys
CONFIGURE_ARGS+=	--with-libpng=sys
CONFIGURE_ARGS+=	--with-libtiff=sys
CONFIGURE_ARGS+=	--with-opengl
CONFIGURE_ARGS+=	--with-expat=sys
CONFIGURE_ARGS+=	--with-zlib=sys
CONFIGURE_ARGS+=	--with-regex=builtin
CONFIGURE_ARGS+=	--enable-mediactrl
CONFIGURE_ARGS+=	--enable-graphics_ctx
CONFIGURE_ARGS+=	--disable-precomp-headers
CONFIGURE_ARGS+=	--bindir=${PREFIX}/libexec/wx-2.8
CONFIGURE_ARGS+=	--datadir=${PREFIX}/share/wx-2.8

DOCDIR=			${PREFIX}/share/wx-2.8/doc/wxGTK

CONFIGURE_DIRS=	build-non-unicode build-unicode

#CONFIGURE_ARGS+=	--enable-debug
#PLIST_SUBST+=		DEBUG_LIB=d DEBUG_CONFIG=-config

PLIST_SUBST+=	DEBUG_LIB= DEBUG_CONFIG=-release

SUBST_CLASSES+=			fix-paths
SUBST_STAGE.fix-paths=		pre-configure
SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
SUBST_FILES.fix-paths=		configure
SUBST_SED.fix-paths=		-e 's,/usr/pkg/include,${PREFIX}/include,g'
SUBST_VARS.fix-paths=		PREFIX
SUBST_SED.fix-paths+=		-e 's,/usr/X11/,${X11BASE}/,g'

.include "../../x11/wxGTK28/options.mk"

pre-configure:
	mkdir ${WRKSRC}/build-non-unicode ${WRKSRC}/build-unicode
	printf '#!%s\n../configure --enable-unicode "$$@"' ${SH} \
	    > ${WRKSRC}/build-unicode/configure
	printf '#!%s\n../configure --disable-unicode "$$@"' ${SH} \
	    > ${WRKSRC}/build-non-unicode/configure

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"

.include "../../mk/pthread.buildlink3.mk"