blob: 584013d2dcc0a3c52857006cbd69dbd41973372b (
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
|
# Created by: Jesse van den Kieboom <troplosti@orcaweb.cjb.net>
PORTNAME= libgksu
PORTVERSION= 2.0.12
PORTREVISION= 8
CATEGORIES= sysutils
MASTER_SITES= http://people.debian.org/~kov/gksu/
MAINTAINER= ports@FreeBSD.org
COMMENT= Library providing su and sudo functionality
LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgtop-2.0.so:devel/libgtop \
libgnome-keyring.so:security/libgnome-keyring \
libstartup-notification-1.so:x11/startup-notification
RUN_DEPENDS= xauth:x11/xauth \
sudo:security/sudo
USES= gettext gmake gnome libtool pathfix pkgconfig xorg
USE_GNOME= cairo gconf2 gdkpixbuf2 glib20 intltool gtk20
USE_LDCONFIG= yes
USE_XORG= x11
CONFIGURE_ARGS= --enable-gtk-doc=no
GNU_CONFIGURE= yes
GCONF_SCHEMAS= gksu.schemas
INSTALL_TARGET= install-strip
post-patch:
@${REINPLACE_CMD} '/AM_CFLAGS/s/-g -O2//' \
${WRKSRC}/gksu-properties/Makefile.in \
${WRKSRC}/libgksu/Makefile.in \
${WRKSRC}/libgksuui/Makefile.in
@${REINPLACE_CMD} '/^test_gksu_LDFLAGS =/s/glib-2.0/gtk+-2.0/' \
${WRKSRC}/libgksu/Makefile.in
@${REINPLACE_CMD} '/^libgksuui1_0_la_LIBADD =/s/$$/ -lX11/' \
${WRKSRC}/libgksuui/Makefile.in
@${REINPLACE_CMD} -E \
-e 's|([" ])/bin/su|\1/usr/bin/su|g' \
-e 's|/usr/bin/sudo|${LOCALBASE}/bin/sudo|g' \
-e 's|/usr/bin/xauth|${LOCALBASE}/bin/xauth|g' \
-e 's|/usr/bin/xgettext|${LOCALBASE}/bin/xgettext|g' \
-e 's|/usr/bin/xterm|${LOCALBASE}/bin/xterm|g' \
${WRKSRC}/libgksu/gksu-run-helper.c \
${WRKSRC}/libgksu/libgksu.c \
${WRKSRC}/libgksu/test-gksu.c \
${WRKSRC}/po/*.po
.include <bsd.port.mk>
|