pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lcms2-32: Install package to ${PREFIX}/emul/netbsd32/



Module Name:	pkgsrc-wip
Committed By:	Naveen Narayanan <zerous@nocebo.space>
Pushed By:	zerous
Date:		Thu Jul 18 22:43:34 2019 +0200
Changeset:	7a025a387f3bd8f61d578cbe890acf8ac8e0f875

Modified Files:
	lcms2-32/Makefile
	lcms2-32/buildlink3.mk

Log Message:
lcms2-32: Install package to ${PREFIX}/emul/netbsd32/

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7a025a387f3bd8f61d578cbe890acf8ac8e0f875

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lcms2-32/Makefile      | 37 ++++++++++++++++++++++---------------
 lcms2-32/buildlink3.mk |  3 ++-
 2 files changed, 24 insertions(+), 16 deletions(-)

diffs:
diff --git a/lcms2-32/Makefile b/lcms2-32/Makefile
index f13471930a..82c8989ff5 100644
--- a/lcms2-32/Makefile
+++ b/lcms2-32/Makefile
@@ -1,22 +1,29 @@
-# $NetBSD: Makefile,v 1.152 2019/01/09 19:09:02 adam Exp $
+# $NetBSD: Makefile,v 1.13 2019/01/15 10:54:46 markd Exp $
 
-ORIGINAL_PACKAGE=       ../../graphics/lcms2
+DISTNAME=	lcms2-2.9
+ABI=		32
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=lcms/}
+PKGNAME=	compat${ABI}_${DISTNAME}
 
-ABI?=           	32
-ORIGINALPKG!=		make -C ${ORIGINAL_PACKAGE}	
-PKGNAME=		compat${ABI}_lcms2-2.9
+MAINTAINER=	gdt%NetBSD.org@localhost
+HOMEPAGE=	http://www.littlecms.com/
+COMMENT=	Little Color Management System - a color management library
+LICENSE=	mit
 
-# XXX make a definition for netbsd archs.
-LIBABISUFFIX?=          /32
-CONFIGURE_ARGS+=        --libdir=${PREFIX}/lib${LIBABISUFFIX}
-CFLAGS+=                -m32
+USE_LIBTOOL=		yes
+GNU_CONFIGURE=		yes
+TEST_TARGET=		check
+CFLAGS+=		-m32
+GNU_CONFIGURE_PREFIX=	${PREFIX}/emul/netbsd32/
 
-remove-non-libraries:
-	echo "Removing non-compat library package content"
-	find ${DESTDIR}${PREFIX} -path ${DESTDIR}${PREFIX}/lib${LIBABISUFFIX} -prune -o -type f -exec ${RM} {} +
 
-post-install: remove-non-libraries
+# lcms does not need zlib, but will look for it and link it to tifficc
+# if present.  Therefore, we don't enjoin lcms from finding zlib, but
+# don't include it via bl3.
 
-GENERATE_PLIST= ${SED} -n '/^lib/ s;lib;lib${LIBABISUFFIX};p' ${ORIGINAL_PACKAGE}/PLIST;
+PKGCONFIG_OVERRIDE=	lcms2.pc.in
 
-.include "${ORIGINAL_PACKAGE}/Makefile"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../wip/tiff-32/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lcms2-32/buildlink3.mk b/lcms2-32/buildlink3.mk
index 38b06b18df..77579b6dfc 100644
--- a/lcms2-32/buildlink3.mk
+++ b/lcms2-32/buildlink3.mk
@@ -7,7 +7,8 @@ COMPAT32_LCMS2_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.compat32_lcms2+=	compat32_lcms2>=2.2
 BUILDLINK_PKGSRCDIR.compat32_lcms2?=	../../wip/lcms2-32
-BUILDLINK_LIBDIRS.compat32_lcms2=	lib/32
+BUILDLINK_LIBDIRS.compat32_lcms2=	emul/netbsd32/lib
+BUILDLINK_INCDIRS.compat32_lcms2=	emul/netbsd32/include
 
 BUILDLINK_TARGETS+=	buildlink-include-compat32_lcms2
 


Home | Main Index | Thread Index | Old Index