freebsd-ports/deskutils/gdesklets/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

53 lines
1.4 KiB
Makefile

# New ports collection makefile for: gdesklets
# Date created: 11 August 2003
# Whom: Mezz <mezz7@cox.net>
#
# $FreeBSD$
#
PORTNAME= gdesklets
PORTVERSION= 0.35.4
PORTREVISION= 1
CATEGORIES= deskutils gnome
MASTER_SITES= http://www.gdesklets.org/downloads/ \
http://www.pycage.de/download/${PORTNAME}/ \
${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/}
DISTNAME= gDesklets-${PORTVERSION}
MAINTAINER= klammer@webonaut.com
COMMENT= A framework for Gnome 2.x for desktop applets
LIB_DEPENDS= gtop-2.0.7:${PORTSDIR}/devel/libgtop
INSTALLS_ICONS= yes
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_PYTHON= yes
USE_X_PREFIX= yes
USE_GNOME= gnomehack gnomeprefix gnometarget intlhack librsvg2 pygnomeextras
OPTIONS= GDBM "install py-gdbm instead py-bsddb for config storage" off
MAN1= gdesklets.1
MANCOMPRESSED= no
.include <bsd.port.pre.mk>
.if defined(WITH_GDBM)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gdbm.so:${PORTSDIR}/databases/py-gdbm
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
.endif
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
post-install:
@${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays
@${MKDIR} ${PREFIX}/share/gnome/gdesklets/Sensors
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/lib/gdesklets
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>