Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 11:41:06 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307269 - head/graphics/lcms-python
Message-ID:  <201211101141.qAABf6cM097074@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Nov 10 11:41:06 2012
New Revision: 307269
URL: http://svnweb.freebsd.org/changeset/ports/307269

Log:
  - Update MASTER_SITES
  - Add LICENSE
  - Support BUILD_WRKSRC/INSTALL_WRKSRC
  
  PR:		ports/172018
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Modified:
  head/graphics/lcms-python/Makefile

Modified: head/graphics/lcms-python/Makefile
==============================================================================
--- head/graphics/lcms-python/Makefile	Sat Nov 10 11:12:15 2012	(r307268)
+++ head/graphics/lcms-python/Makefile	Sat Nov 10 11:41:06 2012	(r307269)
@@ -1,39 +1,36 @@
-# New ports collection makefile for:	lcms-python
-# Date created:		13/10/2009
-# Whom:			stas
-#
+# Created by: stas
 # $FreeBSD$
-#
 
 PORTNAME=	lcms
 PORTVERSION=	1.19
 CATEGORIES=	graphics devel python
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/1.19 \
-		http://www.littlecms.com/
+MASTER_SITES=	SF
 PKGNAMESUFFIX=	-python
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Light Color Management System (python bindings)
 
-LIB_DEPENDS+=	lcms.1:${PORTSDIR}/graphics/lcms
+LICENSE=	MIT
+
+LIB_DEPENDS+=	lcms:${PORTSDIR}/graphics/lcms
+
+BUILD_WRKSRC=	${WRKSRC}/python
+INSTALL_WRKSRC=	${WRKSRC}/python
 
 USE_PYTHON=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-python
-LDFLAGS+=	-L${LOCALBASE}/lib
-WRKSRC=		${WRKDIR}/lcms-1.19
-PLIST_FILES=	${PYTHON_SITELIBDIR:C,${PREFIX}/?,,}/_lcms.so \
-		${PYTHON_SITELIBDIR:C,${PREFIX}/?,,}/lcms.py
 
-.include <bsd.port.pre.mk>
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
 
-do-build:
-	cd ${WRKSRC}/python && ${SETENV} ${MAKE_ENV} ${MAKE} all
+PLIST_FILES=	%%PYTHON_SITELIBDIR%%/_lcms.so \
+		%%PYTHON_SITELIBDIR%%/lcms.py
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/python/.libs/_lcms.so \
+	${INSTALL_DATA} ${INSTALL_WRKSRC}/.libs/_lcms.so \
 		${PYTHON_SITELIBDIR}/_lcms.so
-	${INSTALL_DATA} ${WRKSRC}/python/lcms.py \
+	${INSTALL_DATA} ${INSTALL_WRKSRC}/lcms.py \
 		${PYTHON_SITELIBDIR}/lcms.py
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211101141.qAABf6cM097074>