blob: 13d184c600889319fe597912fcd04a60cb6cb793 (
plain)
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
73
74
75
|
# New ports collection makefile for: gtkpod
# Date created: 28 January 2003
# Whom: David Le Brun <david@dyn-ns.net>
#
# $FreeBSD$
#
PORTNAME= gtkpod
PORTVERSION= 0.80
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= david@dyn-ns.net
COMMENT= GUI for Apple iPods using GTK2
LIB_DEPENDS= id3tag.2:${PORTSDIR}/audio/libid3tag
RUN_DEPENDS= mp3gain:${PORTSDIR}/audio/mp3gain
USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= gtk20
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libmp4v2.so)
.if exists(${LOCALBASE}/include/mpeg4ip_config.h)
WITH_AAC= YES
.else
WITH_FAAD= YES
.endif
.endif
.if defined(WITH_AAC) && defined(WITH_FAAD)
BROKEN= "WITH_AAC and WITH_FAAD are exclusive."
.endif
.if defined(WITH_AAC)
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip
.endif
.if defined(WITH_FAAD)
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/audio/faad
.endif
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.if !defined(WITH_AAC) && !defined(WITH_FAAD)
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "To enable AAC support with mpeg4ip define the WITH_AAC knob."
@${ECHO_MSG} "To enable AAC support with faad2 define the WITH_FAAD knob."
@${ECHO_MSG}
.endif
post-patch:
@${CP} ${FILESDIR}/systems.h ${WRKSRC}/src
pre-configure:
# install locale correctly (share dir instead of lib dir)
@${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|(libdir)/locale|(datadir)/locale|' \
${WRKSRC}/po/Makefile.in.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/TODOandBUGS.txt ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|