~cypheon/pkgsrc-wip

pkgsrc-wip/linuxdcpp/Makefile -rw-r--r-- 1.4 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD: Makefile,v 1.17 2013/02/01 22:22:16 thomasklausner Exp $

DISTNAME=		linuxdcpp-1.0.3
PKGREVISION=		2
CATEGORIES=		net x11
MASTER_SITES=		http://launchpad.net/linuxdcpp/1.0/1.0.3/+download/
EXTRACT_SUFX=		.tar.bz2
LICENSE=		gnu-gpl-v2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://launchpad.net/linuxdcpp/
COMMENT=		DC++-based p2p filesharing application

USE_LANGUAGES=		c c++
GCC_REQD+=		3.4
USE_TOOLS+=		pkg-config pax

PTHREAD_OPTS+=		native
NO_CONFIGURE=		yes
BUILD_DEPENDS+=		scons>=0.96:../../devel/scons

LDFLAGS+=		${X11_LDFLAGS}

.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"

.if ${OPSYS} == "HPUX"
CFLAGS+=		"-Dmadvise(addr,len,behav)="
.endif

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons debug=true relase=true PREFIX=${PREFIX}

INSTALLATION_DIRS=	bin share/linuxdcpp/glade share/linuxdcpp/pixmaps

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/linuxdcpp \
	  ${DESTDIR}${PREFIX}/bin/linuxdcpp
	cd ${WRKSRC}/glade && pax -rw *.glade \
	  ${DESTDIR}${PREFIX}/share/linuxdcpp/glade
	cd ${WRKSRC}/pixmaps && pax -rw *.png \
	  ${DESTDIR}${PREFIX}/share/linuxdcpp/pixmaps

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/libglade/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"