summaryrefslogtreecommitdiffstats
path: root/devel/elfrc/Makefile
blob: 515b74f16e62f960ae17abb64129e4856a4ac78a (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
# New ports collection makefile for:	elfrc
# Date created:				13 July 2007
# Whom:					Ed Schouten <ed@fxq.nl>
#
# $FreeBSD$
#

PORTNAME=	elfrc
PORTVERSION=	0.7
CATEGORIES=	devel
MASTER_SITES=	http://ktown.kde.org/~frerich/

MAINTAINER=	ed@FreeBSD.org
COMMENT=	Resource compiler for ELF systems

PLIST_FILES=	bin/elfrc
PORTDOCS=	README

do-build:
	@${ECHO} '#define ELFRC_VERSION "${PORTVERSION}"' > ${WRKSRC}/config.h
	${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/elfrc ${WRKSRC}/elfrc.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/elfrc ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

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