2005-07-17 04:07:48 +02:00
|
|
|
# New ports collection makefile for: openclipart
|
|
|
|
# Date created: 2005-07-16
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2005-08-28 16:59:30 +02:00
|
|
|
# $MCom: ports-stable/graphics/openclipart/Makefile,v 1.1 2005/08/09 02:14:05 ahze Exp $
|
2005-07-17 04:07:48 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= openclipart
|
2005-10-18 01:44:52 +02:00
|
|
|
PORTVERSION= 0.18
|
2005-11-10 04:48:30 +01:00
|
|
|
CATEGORIES= graphics
|
2008-02-28 20:14:03 +01:00
|
|
|
MASTER_SITES= http://download.openclipart.org/downloads/${PORTVERSION}/
|
2005-07-17 04:07:48 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}${SVGPNG}
|
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2005-07-17 04:07:48 +02:00
|
|
|
COMMENT= Open Clip Art Library
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2005-09-08 07:34:38 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}${SVGPNG}
|
2005-07-17 04:07:48 +02:00
|
|
|
NO_BUILD= yes
|
2006-10-10 00:48:23 +02:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
|
|
|
|
OPTIONS= PNG "Install png files" on
|
2005-07-17 04:07:48 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_PNG)
|
2005-08-28 16:59:30 +02:00
|
|
|
SVGPNG= -full
|
2005-07-17 04:07:48 +02:00
|
|
|
.else
|
|
|
|
SVGPNG= -svgonly
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${RM} -f ${PLIST}
|
|
|
|
${TOUCH} -f ${PLIST}
|
|
|
|
cd ${WRKSRC} && ${FIND} -s * -type f -o -type l | \
|
|
|
|
${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} \
|
|
|
|
&& ${FIND} -d * -type d | \
|
|
|
|
${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ${FIND} . | \
|
2006-10-10 00:48:23 +02:00
|
|
|
${CPIO} -vpdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
|
|
|
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
|
|
|
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
|
2005-07-17 04:07:48 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|