blob: 3e4003c4cc17aec5204ccc38365c3be387896b69 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# New ports collection makefile for: gopod
# Date created: 4 April 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= gopod
PORTVERSION= 1.4
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= http://gopod.free-go.net/gopod/ \
CRITICAL
PKGNAMEPREFIX?=
DISTNAME= goPod-${PORTVERSION}_linux_bsd
MAINTAINER= ehaupt@FreeBSD.org
COMMENT?= Utility to cap/uncap an iPod
HAS_CONFIGURE= yes
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
MAKE_ARGS+= CC="${CC}"
RESTRICTED= Unclear legal status in EU countries
.if ${PKGNAMEPREFIX} == ""
PLIST_FILES= bin/gopod
WRKSRC= ${WRKDIR}/${DISTNAME}/console-version
.endif
PORTDOCS= README_EN README_FR
post-extract:
@${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|h)" -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
post-patch:
.if ${PKGNAMEPREFIX} == "gtk-"
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/gui.c
@${REINPLACE_CMD} -E \
's/^(CFLAGS|LDFLAGS).*=/\1+=/; s|(OS_FLAGS\))|\1 $${CFLAGS}|' \
${WRKSRC}/Makefile
.else
@${REINPLACE_CMD} -e 's|\($$(CC)\)|\1 $${CFLAGS}|; /strip/d' \
${WRKSRC}/Makefile
.endif
do-install:
.if ${PKGNAMEPREFIX} == ""
${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.else
@${MKDIR} ${DATADIR}
.for f in ${DATAFILES}
${INSTALL_DATA} ${WRKSRC}/gfx/${f} ${DATADIR}
.endfor
${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} \
${PREFIX}/bin/${UNIQUENAME}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|