aboutsummaryrefslogtreecommitdiff
path: root/x11/gcb/Makefile
blob: 0d756182581bbb2384136f8cdae0b6e59e756743 (plain) (blame)
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
# New ports collection makefile for:	gcb
# Date Created:				30 January 2006
# Whom:					Nosov Artem <chip-set@mail.ru>
#
# $FreeBSD$
#

PORTNAME=	gcb
PORTVERSION=	0.2.8
PORTREVISION=	2
CATEGORIES=	x11
MASTER_SITES=	http://freebsd.flatrate.ru/distfiles/ \
		http://ccbsd9.csie.nctu.edu.tw/~cp76/gcb/

MAINTAINER=	chip-set@mail.ru
COMMENT=	A GTK+ tool for managing x11 cut-buffers

HAS_CONFIGURE=	yes
USE_BZIP2=	yes
USE_GNOME=	gtk20

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		Does not compile on FreeBSD 4.x
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|#!/bin/bash|#!${SH}|' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
		s|^\(CFLAGS\)=\(.*\)-g\ -O\(.*\)|\1+=\2 \3|' \
			${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/icons
	${MKDIR} ${PREFIX}/share/applications
	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop \
		${PREFIX}/share/applications
	${MKDIR} ${PREFIX}/share/pixmaps
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps

.include <bsd.port.post.mk>