summaryrefslogtreecommitdiffstats
path: root/sysutils/unieject/Makefile
blob: 64a590e6fc206b526d7d1c8d61b8e6091315a9ba (plain)
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
45
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=	unieject
PORTVERSION=	6
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Eject(1) replacement

LICENSE=	GPLv2

LIB_DEPENDS=	confuse:${PORTSDIR}/devel/libconfuse \
		pcre:${PORTSDIR}/devel/pcre \
		cdio:${PORTSDIR}/sysutils/libcdio

USE_BZIP2=	yes
USE_GNOME=	glib20 gnomehack
USE_GETTEXT=	yes
USE_ICONV=	yes
USE_PKGCONFIG=	build
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-silent-rules \
		--disable-doc
USE_LDCONFIG=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

MAN1=		unieject.1
MAN5=		unieject.conf.5

post-patch:
	@${REINPLACE_CMD} -e \
		'/-D_POSIX_C_SOURCE/s|^CPPFLAGS|#CPPFLAGS|' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		'/^install-data-am:/s|install-dist_docDATA|| ; \
		 /^install-data-am:/s|install-dist_htmlDATA||' ${WRKSRC}/Makefile.in

post-install:
	${INSTALL_DATA} ${WRKSRC}/unieject.conf.sample ${PREFIX}/etc

.include <bsd.port.mk>
OpenPOWER on IntegriCloud