blob: 2c3a3ed8c90d32ccd2d3e2135942cd292e21071c (
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
|
# Ports collection makefile for: metapixel
# Date created: 2002-05-23
# Whom: Tilman Linneweh <arved@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= metapixel
PORTVERSION= 1.0.0
CATEGORIES= graphics
MASTER_SITES= http://www.complang.tuwien.ac.at/~schani/metapixel/ \
http://dragon.roe.ch/mirrors/distfiles/metapixel/
MAINTAINER= daniel@roe.ch
COMMENT= A photomosaic generator
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_GETOPT_LONG=yes
USE_GMAKE= yes
USE_REINPLACE= yes
MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I." \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
PLIST_FILES= bin/metapixel bin/metapixel-convert bin/metapixel-imagesize \
bin/metapixel-prepare bin/metapixel-sizesort bin/metapixel-zoom \
share/examples/metapixel/metapixelrc
PLIST_DIRS= share/examples/metapixel
PORTDOCS= README NEWS
MAN1= metapixel.1
post-patch:
@${RM} ${WRKSRC}/getopt.h
@${MV} ${WRKSRC}/sizesort ${WRKSRC}/metapixel-sizesort
@${REINPLACE_CMD} -e 's/imagesize/metapixel-imagesize/' \
${WRKSRC}/metapixel-sizesort
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/metapixel ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/metapixel-convert ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/metapixel-imagesize ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/metapixel-prepare ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/metapixel-sizesort ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/metapixel-zoom ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/metapixel.1 ${PREFIX}/man/man1
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/metapixelrc ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|