mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
8640099a71
files. It can also generate corresponding C/C++ header files to use these resources from within a linked application. WWW: http://ktown.kde.org/~frerich/elfrc.html PR: ports/114555 Submitted by: Ed Schouten <ed at fxq.nl>
37 lines
795 B
Makefile
37 lines
795 B
Makefile
# 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@fxq.nl
|
|
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.pre.mk>
|
|
|
|
.if ${OSVERSION} < 600000
|
|
IGNORE= lack of ELF definitions (STV_DEFAULT) on FreeBSD < 6.0
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|