summaryrefslogtreecommitdiff
path: root/graphics/mgp-gallery/Makefile
blob: 895efd9f04b7f80997b11fa8c97243b40094da87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# ex:ts=8	-*-mode: makefile-*-
#
# New ports collection makefile for:	mgp-gallery
# Date created:		2002-12-28
# Whom:			Alan Eldridge <alane@geeksrus.net>
#
# $FreeBSD$
#

PORTNAME=	mgp-gallery
PORTVERSION=	2.0
PORTREVISION=	1
PORTEPOCH=	0
CATEGORIES=	graphics
MASTER_SITES=	http://puchol.com/cpg/software/mgp/
DISTFILES=	mgp-midgard-${PORTVERSION}.tgz \
		mgp-backgrounds-${PORTVERSION}.tgz \
		mgp-solid-${PORTVERSION}.tgz \
		mgp-gradients-${PORTVERSION}.tgz
DIST_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}

MAINTAINER=	alane@FreeBSD.org

NO_BUILD=yes

.include <bsd.port.pre.mk>

DATA_SUBDIR=		share
DATADIR=		${PREFIX}/${DATA_SUBDIR}
PKGDATA_SUBDIR=		share/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PKGDATADIR=		${PREFIX}/${PKGDATA_SUBDIR}

PLIST=	${WRKDIR}/plist

post-extract:
	${TOUCH} ${PLIST}

do-install:
	${MKDIR} ${PKGDATADIR}
.for i in midgard backgrounds solid gradients
	${MKDIR} ${PKGDATADIR}/${i}
	cd ${WRKDIR}/mgp-${i}-${PORTVERSION};\
	${INSTALL_DATA} * ${PKGDATADIR}/${i};\
	${SCRIPTDIR}/fix-gallery "${INSTALL_DATA}" ${PKGDATADIR}/${i} *.mgp
.endfor # i in midgard backgrounds solid gradient
	cd ${PREFIX};\
	${RM} -f ${PLIST};\
	${FIND} ${PKGDATA_SUBDIR} -type f | sort >>${PLIST};\
	${FIND} ${PKGDATA_SUBDIR} -type d | sort -r \
		| ${SED} 's|^|@dirrm |' >>${PLIST}

.include <bsd.port.post.mk>

#EOF