60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
# Created by: Koop Mast <kwm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gtk-update-icon-cache
|
|
PORTVERSION= 2.24.27
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= GNOME/sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
|
DISTNAME= gtk+-${PORTVERSION}
|
|
DIST_SUBDIR= gnome2
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Gtk-update-icon-cache utility from the Gtk+ toolkit
|
|
|
|
LICENSE= LGPL20
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS+= update-mime-database:${PORTSDIR}/misc/shared-mime-info \
|
|
${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme
|
|
|
|
USES= gettext gmake libtool pathfix perl5 pkgconfig tar:xz
|
|
USE_PERL5= build
|
|
MAKE_JOBS_UNSAFE= yes
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= atk pango gdkpixbuf2 introspection:build
|
|
USE_XORG= xext xrender x11 xinerama xi xrandr xcursor xfixes xdamage \
|
|
xcomposite
|
|
PATCHDIR= ${.CURDIR}/../../x11-toolkits/gtk20/files
|
|
CONFIGURE_ARGS= --enable-static --with-xinput=yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
BUILD_WRKSRC= ${WRKSRC}/gtk
|
|
ALL_TARGET= ${PORTNAME}
|
|
PLIST_FILES= bin/gtk-update-icon-cache
|
|
# man/man1/gtk-update-icon-cache.1.gz
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-DGDK_PIXBUF_DISABLE_DEPRECATED||g' \
|
|
${WRKSRC}/configure
|
|
|
|
pre-configure:
|
|
.if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc)
|
|
@${ECHO_CMD} "${PKGNAME}: Needs cairo with X11 support enabled."
|
|
@${FALSE}
|
|
.endif
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/gtk/gtk-update-icon-cache \
|
|
${STAGEDIR}${PREFIX}/bin/
|
|
# @${INSTALL_MAN} ${WRKSRC}/docs/reference/gtk/gtk-update-icon-cache.1 \
|
|
# ${STAGEDIR}${PREFIX}/man/man1/
|
|
|
|
.include <bsd.port.post.mk>
|