dca0625c6b
* Remove copy of X11 header files for old X11, it may cause build failure with recent X, like a PR 39975. * Need rgb.txt, add dependency on x11/rgb for X11_TYPE=modular. And fix path for the file (SUBST.rgb and patch-ac). * Add DESTDIR support. it seems that rules of imake deal spaces after cammna as part of the argument (patch-ac). * Replace IMAKE_MANNEWSUFFIX with IMAKE_MAN_SUFFIX in PLIST. * hard coded errno and sys_errlist is not portable these days (patch-ab) * sort PLIST * regen patches with unfied diff. Bump PKGREVISION.
46 lines
1 KiB
Makefile
46 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.32 2008/11/30 08:43:16 obache Exp $
|
|
|
|
DISTNAME= pixmap2.6
|
|
PKGNAME= pixmap-2.6.4
|
|
PKGREVISION= 6
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_XCONTRIB:=applications/pixmap/}
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
PATCHFILES= pixmap_2.6.patch1.gz \
|
|
pixmap_2.6.patch2.gz \
|
|
pixmap_2.6.patch3.gz \
|
|
pixmap_2.6.patch4.gz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Pixmap editor based on XPM library
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/pixmap
|
|
USE_IMAKE= YES
|
|
|
|
MAKE_ENV+= LOCAL_LDFLAGS=${LDFLAGS:Q}
|
|
MAKE_ENV+= MOTIFBASE=${MOTIFBASE}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${X11_TYPE} == "modular"
|
|
DEPENDS+= rgb>=1.0.1:../../x11/rgb
|
|
RGBTXT= ${PREFIX}/share/X11/rgb.txt
|
|
.else
|
|
RGBTXT= ${X11BASE}/lib/X11/rgb.txt
|
|
.endif
|
|
|
|
SUBST_CLASSES+= rgb
|
|
SUBST_STAGE.rgb= pre-configure
|
|
SUBST_FILES.rgb= Imakefile
|
|
SUBST_VARS.rgb= RGBTXT
|
|
|
|
post-extract:
|
|
rm -rf ${WRKSRC}/X11
|
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../mk/motif.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|