1 |
# New ports collection makefile for: obconf |
2 |
# Date created: 2002-10-13 |
3 |
# Whom: trevor |
4 |
# |
5 |
# $MidnightBSD: mports/x11-wm/obconf/Makefile,v 1.5 2008/08/19 18:54:20 laffer1 Exp $ |
6 |
# $FreeBSD: ports/x11-wm/obconf/Makefile,v 1.13 2006/09/02 10:02:10 novel Exp $ |
7 |
# |
8 |
|
9 |
PORTNAME= obconf |
10 |
PORTVERSION= 2.0.3 |
11 |
CATEGORIES= x11-wm |
12 |
MASTER_SITES= http://offload1.icculus.org/openbox/obconf/ |
13 |
|
14 |
MAINTAINER= ports@MidnightBSD.org |
15 |
COMMENT= Preferences manager for the Openbox window manager |
16 |
LICENSE= gpl2 |
17 |
|
18 |
LIB_DEPENDS= startup-notification-1.0:${PORTSDIR}/x11/startup-notification \ |
19 |
obparser.21:${PORTSDIR}/x11-wm/openbox |
20 |
|
21 |
USE_XLIB= yes |
22 |
USE_GNOME= gnomehier libglade2 |
23 |
USE_GMAKE= yes |
24 |
GNU_CONFIGURE= yes |
25 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
26 |
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/openbox |
27 |
|
28 |
CPPFLAGS= -I${LOCALBASE}/include |
29 |
LDFLAGS= -L${LOCALBASE}/lib |
30 |
|
31 |
PORTDOCS= ABOUT-NLS AUTHORS README TODO |
32 |
PLIST_FILES= bin/obconf \ |
33 |
share/applications/obconf.desktop \ |
34 |
%%DATADIR%%/obconf.glade |
35 |
PLIST_DIRS= %%DATADIR%% |
36 |
PLIST= ${WRKDIR}/pkg-plist |
37 |
|
38 |
.if defined(WITHOUT_NLS) |
39 |
CONFIGURE_ARGS+= --disable-nls |
40 |
PLIST_SUB+= NLS="@comment " |
41 |
.else |
42 |
USE_GETTEXT= yes |
43 |
PLIST_SUB+= NLS="" |
44 |
.endif |
45 |
|
46 |
pre-install: |
47 |
@${ECHO_CMD} "@dirrmtry share/applications" > ${PLIST} |
48 |
|
49 |
post-install: |
50 |
.if !defined(NOPORTDOCS) |
51 |
@${MKDIR} ${DOCSDIR} |
52 |
.for file in ${PORTDOCS} |
53 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
54 |
.endfor |
55 |
.endif |
56 |
|
57 |
.include <bsd.port.mk> |