blob: ca38100a419f53bf33f62bfcf656bcf790ea6df7 (
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
|
# $NetBSD: Makefile,v 1.12 2018/04/14 07:34:24 adam Exp $
DISTNAME= FlickrNet-3.24.0
PKGNAME= ${DISTNAME:tl}
PKGREVISION= 3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GITHUB:=samjudson/}
GITHUB_PROJECT= flickr-net
GITHUB_TAG= ${PKGVERSION_NOREV:S/.0//}
COMMENT= .NET library for accessing Flickr
LICENSE= gnu-lgpl-v2.1
WRKSRC= ${WRKDIR}/flickr-net-${PKGVERSION_NOREV:S/.0//}
USE_TOOLS+= pkg-config
SUBST_CLASSES+= fix-prefix
SUBST_STAGE.fix-prefix= pre-configure
SUBST_MESSAGE.fix-prefix= Fix pkg-config prefix
SUBST_FILES.fix-prefix= flickrnet.pc
SUBST_SED.fix-prefix= -e 's,\@prefix\@,${PREFIX},'
do-build:
cd ${WRKSRC} && \
xbuild FlickrNet/FlickrNet.csproj
do-install:
mkdir ${DESTDIR}/${PREFIX}/lib/flickrnet
install ${WRKSRC}/FlickrNet/bin/Debug/FlickrNet.* \
${DESTDIR}/${PREFIX}/lib/flickrnet
mkdir ${DESTDIR}/${PREFIX}/lib/pkgconfig
install ${WRKSRC}/flickrnet.pc \
${DESTDIR}/${PREFIX}/lib/pkgconfig/flickrnet.pc
.include "../../lang/mono/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|