blob: 30bc70437e938919e20a8e9f9f26c324c621f308 (
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
|
# New ports collection makefile for: sysutils/daa2iso
# Date created: 27 Jan 2008
# Whom: Martin Tournoij <carpetsmoker@xs4all.nl>
#
# $FreeBSD$
#
PORTNAME= daa2iso
PORTVERSION= 0.1.5a
CATEGORIES= sysutils
MASTER_SITES= http://www.carpetsmoker.net/distfiles/ \
http://www.xs4all.nl/distfiles/ \
http://www.rwxrwxrwx.net/distfiles/
MAINTAINER= carpetsmoker@rwxrwxrwx.net
COMMENT= Convert PowerISO DAA files to ISO9660
PLIST_FILES= bin/daa2iso
PORTDOCS= daa2iso.txt
post-patch:
@${REINPLACE_CMD} 's|exit(1)|exit(0)|' ${WRKSRC}/daa2iso.c
do-build:
${CC} ${CFLAGS} -c ${WRKSRC}/LzmaDec.c -o ${WRKSRC}/LzmaDec.o
${CC} -o ${WRKSRC}/${PORTNAME} ${CFLAGS} -lz ${WRKSRC}/daa2iso.c ${WRKSRC}/LzmaDec.o
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/daa2iso ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/daa2iso.txt ${DOCSDIR}
.endif
.if defined(MAINTAINER)
distfile:
rm -fr /tmp/${PORTNAME}-${PORTVERSION}
mkdir /tmp/${PORTNAME}-${PORTVERSION}
cd /tmp/${PORTNAME}-${PORTVERSION} && \
fetch http://aluigi.altervista.org/mytoolz/${PORTNAME}.zip && \
tar xf ${PORTNAME}.zip && \
mv src/* . && \
rm -rf ${PORTNAME}.zip *.exe src && \
chmod 664 *
cd /tmp && \
tar cf ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-${PORTVERSION}
rm -fr /tmp/${PORTNAME}-${PORTVERSION}
.endif
.include <bsd.port.mk>
|