1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/x11/libcapplet/Makefile
Joe Marcus Clarke 1bf8c3cf63 Do not hard-code -lgnugetopt which causes a problem on newer versions of
-CURRENT.

PR:		55398
Submitted by:	SUGIMOTO Sadahiro <ixtl@utmc.or.jp>
2003-08-08 20:49:09 +00:00

45 lines
1.2 KiB
Makefile

# New ports collection makefile for: libcapplet
# Date created: 10 July 2002
# Whom: Maxim Soboleb <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libcapplet
PORTVERSION= 1.4.0.5
PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= http://people.freebsd.org/~sobomax/
DIST_SUBDIR= gnome
MAINTAINER= gnome@FreeBSD.org
COMMENT= A library for writing custom applets for GNOME Control Center
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GNOME= gnomelibs
INSTALLS_SHLIB= yes
USE_GETOPT_LONG=yes
MAKE_ENV= X11BASE="${X11BASE}" LOCALBASE="${LOCALBASE}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500041
USE_REINPLACE= yes
post-build:
@${REINPLACE_CMD} -e 's/-lgnugetopt //' ${WRKSRC}/cappletConf.sh
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libcapplet.so.5 ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libcapplet.a ${PREFIX}/lib
${LN} -sf libcapplet.so.5 ${PREFIX}/lib/libcapplet.so
${MKDIR} ${PREFIX}/include/libcapplet1
${INSTALL_DATA} ${WRKSRC}/capplet-widget.h \
${PREFIX}/include/libcapplet1
${MKDIR} ${PREFIX}/share/gnome/idl
${INSTALL_DATA} ${WRKSRC}/control-center.idl ${PREFIX}/share/gnome/idl
${INSTALL_SCRIPT} ${WRKSRC}/cappletConf.sh ${PREFIX}/etc
.include <bsd.port.post.mk>