blob: 719328d927eb66b2b20a428a5a3551904c9e489c (
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
|
# New ports collection makefile for: libcanberra
# Date created: 05 August 2008
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
# $MCom$
#
PORTREVISION= 2
CATEGORIES= audio devel
PKGNAMESUFFIX= -gtk3
MAINTAINER= gnome@FreeBSD.org
COMMENT= Implementation of the Freedesktop sound theme spec
MASTERDIR= ${.CURDIR}/../../audio/libcanberra
SLAVEPORT= gtk3
PLIST= ${.CURDIR}/pkg-plist
do-build:
cd ${WRKSRC} && ${GMAKE} libcanberra-gtk3.pc
cd ${WRKSRC}/src && ${GMAKE} libcanberra-gtk3.la
cd ${WRKSRC}/src && ${GMAKE} libcanberra-gtk3-module.la
# fix the .la file so it doesn't point to the build dir anymore.
@${REINPLACE_CMD} -e '/^relink_command/ d' \
-e 's|${WRKSRC}/src/libcanberra.la|${LOCALBASE}/lib/libcanberra.la|g' \
${WRKSRC}/src/.libs/libcanberra-gtk3.la
do-install:
${INSTALL_DATA} ${WRKSRC}/libcanberra-gtk3.pc \
${PREFIX}/libdata/pkgconfig/
.for i in .a .la .so .so.0
${INSTALL_DATA} ${WRKSRC}/src/.libs/libcanberra-gtk3${i} \
${PREFIX}/lib/
.endfor
cd ${WRKSRC}/src && ${GMAKE} install-gtk3moduleLTLIBRARIES
cd ${PREFIX}/lib/gtk-3.0/modules && \
${LN} -sf libcanberra-gtk3-module.so libcanberra-gtk-module.so
.include "${MASTERDIR}/Makefile"
|