Tweak print/gtklp version 1.3.1_2
[dports.git] / print / gtklp / Makefile
1 # Created by: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
2 # $FreeBSD$
3
4 PORTNAME=       gtklp
5 PORTVERSION=    1.3.1
6 DISTVERSIONSUFFIX=      .src
7 PORTREVISION=   2
8 CATEGORIES=     print
9 MASTER_SITES=   SF
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        GTK interface to cups
13
14 LICENSE=        GPLv2+
15 LICENSE_FILE=   ${WRKSRC}/COPYING
16
17 LIB_DEPENDS=    libcups.so:print/cups
18
19 WRKSRC=         ${WRKDIR}/${PORTNAME}-${PORTVERSION}
20
21 USES=           autoreconf gettext libtool pkgconfig ssl
22 GNU_CONFIGURE=  yes
23 USE_GNOME=      gtk20
24 INSTALLS_ICONS= yes
25
26 CPPFLAGS+=      -I${LOCALBASE}/include
27 LDFLAGS+=       -L${LOCALBASE}/lib
28
29 DESKTOP_ENTRIES="GtkLP" "" "${PORTNAME}" "${PORTNAME}" "System;GTK;" ""
30
31 post-install:
32 .for i in 16 24 32 48 64
33         @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
34         (cd ${WRKSRC}/libgtklp/icons && ${INSTALL_DATA} ${i}x${i}.xpm \
35                 ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/gtklp.xpm)
36 .endfor
37
38 .include <bsd.port.mk>