On Thu, November 11, 2010 15:40, Stuart Henderson wrote: > On 2010/11/11 15:32, Kirill Bychkov wrote: >> Hello. >> I'm trying to add python bindings to graphics/lcms. There is a problem with >> LIB-DEPENDS in -python subpackage|: >> py-lcms-1.18a(graphics/lcms,-python): >> LIB_DEPENDS: python2.6.1 from python-2.6.6 >> (/usr/local/lib/python2.6/site-packages/_lcms.so) >> >> I have LIB_DEPENDS-python = ${MODPY_LIB_DEPENDS} >> What's wrong? > > ${MODPY_WANTLIB} is missing from WANTLIB-python, you will also need > @pkgpath markers so that pkg_add -u can work correctly. > >
New patch with ${MODPY_WANTLIB} and @pkgpath, as pointed by sthen@ OK? Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/lcms/Makefile,v retrieving revision 1.22 diff -u -p -r1.22 Makefile --- Makefile 9 Nov 2010 18:22:26 -0000 1.22 +++ Makefile 11 Nov 2010 19:09:41 -0000 @@ -1,30 +1,44 @@ # $OpenBSD: Makefile,v 1.22 2010/11/09 18:22:26 espie Exp $ -COMMENT = color management library +COMMENT-main = color management library +COMMENT-python = python bindings for color management library DISTNAME = lcms-1.18a +PKGNAME-main = ${DISTNAME} +REVISION-main = 0 +PKGNAME-python = py-${DISTNAME} SHARED_LIBS = lcms 2.0 CATEGORIES = graphics MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=lcms/} HOMEPAGE = http://www.littlecms.com/ -LIB_DEPENDS += ::graphics/jpeg \ - ::graphics/tiff +MULTI_PACKAGES = -main -python + +LIB_DEPENDS-main = ::graphics/jpeg \ + ::graphics/tiff +LIB_DEPENDS-python = ${MODPY_LIB_DEPENDS} \ + ::graphics/lcms # MIT PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes -WANTLIB = c m z jpeg tiff + +WANTLIB-main = c m z jpeg tiff +WANTLIB-python = ${MODPY_WANTLIB} lcms m stdc++ + +MODULES = lang/python USE_LIBTOOL = Yes USE_GROFF = Yes CONFIGURE_STYLE = gnu -CONFIGURE_ARGS += ${CONFIGURE_SHARED} +CONFIGURE_ARGS += ${CONFIGURE_SHARED} \ + --with-python CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" + LDFLAGS="-L${LOCALBASE}/lib" \ + am_cv_pathless_PYTHON=python${MODPY_VERSION} WRKDIST = ${WRKDIR}/lcms-1.18 Index: pkg/DESCR =================================================================== RCS file: pkg/DESCR diff -N pkg/DESCR --- pkg/DESCR 15 Dec 2003 21:42:33 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,6 +0,0 @@ -LCMS is the Little Color Management System, a Color Matching Method -(CMM) library which implements fast transforms between ICC profiles. - -Color management refers to techniques that ensure consistent color -as images are transferred from scanners or cameras to monitors and -printers. Index: pkg/DESCR-main =================================================================== RCS file: pkg/DESCR-main diff -N pkg/DESCR-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/DESCR-main 11 Nov 2010 19:09:41 -0000 @@ -0,0 +1,6 @@ +LCMS is the Little Color Management System, a Color Matching Method +(CMM) library which implements fast transforms between ICC profiles. + +Color management refers to techniques that ensure consistent color +as images are transferred from scanners or cameras to monitors and +printers. Index: pkg/DESCR-python =================================================================== RCS file: pkg/DESCR-python diff -N pkg/DESCR-python --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/DESCR-python 11 Nov 2010 19:09:41 -0000 @@ -0,0 +1 @@ +Little Color Management System python bindings Index: pkg/PFRAG.shared =================================================================== RCS file: pkg/PFRAG.shared diff -N pkg/PFRAG.shared --- pkg/PFRAG.shared 26 Dec 2005 17:27:24 -0000 1.5 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,2 +0,0 @@ -...@comment $OpenBSD: PFRAG.shared,v 1.5 2005/12/26 17:27:24 steven Exp $ -...@lib lib/liblcms.so.${LIBlcms_VERSION} Index: pkg/PFRAG.shared-main =================================================================== RCS file: pkg/PFRAG.shared-main diff -N pkg/PFRAG.shared-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/PFRAG.shared-main 11 Nov 2010 19:09:41 -0000 @@ -0,0 +1,2 @@ +...@comment $OpenBSD: PFRAG.shared,v 1.5 2005/12/26 17:27:24 steven Exp $ +...@lib lib/liblcms.so.${LIBlcms_VERSION} Index: pkg/PLIST =================================================================== RCS file: pkg/PLIST diff -N pkg/PLIST --- pkg/PLIST 10 Jun 2008 00:42:40 -0000 1.5 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,23 +0,0 @@ -...@comment $OpenBSD: PLIST,v 1.5 2008/06/10 00:42:40 okan Exp $ -...@bin bin/icc2ps -...@bin bin/icclink -...@bin bin/icctrans -...@bin bin/jpegicc -...@bin bin/tiffdiff -...@bin bin/tifficc -...@bin bin/wtpt -include/icc34.h -include/lcms.h -lib/liblcms.a -lib/liblcms.la -lib/pkgconfig/ -lib/pkgconfig/lcms.pc -...@man man/man1/icc2ps.1 -...@man man/man1/icclink.1 -...@man man/man1/jpegicc.1 -...@man man/man1/tifficc.1 -...@man man/man1/wtpt.1 -share/doc/lcms/ -share/doc/lcms/LCMSAPI.TXT -share/doc/lcms/TUTORIAL.TXT -%%SHARED%% Index: pkg/PLIST-main =================================================================== RCS file: pkg/PLIST-main diff -N pkg/PLIST-main --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/PLIST-main 11 Nov 2010 19:09:41 -0000 @@ -0,0 +1,23 @@ +...@comment $OpenBSD$ +...@pkgpath graphics/lcms +%%SHARED%% +...@bin bin/icc2ps +...@bin bin/icclink +...@bin bin/icctrans +...@bin bin/jpegicc +...@bin bin/tiffdiff +...@bin bin/tifficc +...@bin bin/wtpt +include/icc34.h +include/lcms.h +lib/liblcms.a +lib/liblcms.la +lib/pkgconfig/lcms.pc +...@man man/man1/icc2ps.1 +...@man man/man1/icclink.1 +...@man man/man1/jpegicc.1 +...@man man/man1/tifficc.1 +...@man man/man1/wtpt.1 +share/doc/lcms/ +share/doc/lcms/LCMSAPI.TXT +share/doc/lcms/TUTORIAL.TXT Index: pkg/PLIST-python =================================================================== RCS file: pkg/PLIST-python diff -N pkg/PLIST-python --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/PLIST-python 11 Nov 2010 19:09:41 -0000 @@ -0,0 +1,5 @@ +...@comment $OpenBSD$ +lib/python${MODPY_VERSION}/site-packages/_lcms.a +lib/python${MODPY_VERSION}/site-packages/_lcms.la +lib/python${MODPY_VERSION}/site-packages/_lcms.so +lib/python${MODPY_VERSION}/site-packages/lcms.py
lcms.diff
Description: Binary data