1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

- Support staging

- Define LICENSE
- Respect CFLAGS
This commit is contained in:
Emanuel Haupt 2014-02-19 12:52:05 +00:00
parent 13ecb6b82f
commit 9c8ffe3536
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345089
2 changed files with 20 additions and 6 deletions

View File

@ -9,16 +9,17 @@ MASTER_SITES= http://freebsdcluster.org/~mich/software/
MAINTAINER= mich@FreeBSD.org
COMMENT= Bitedit is a simple ncurses program for editing a file
LICENSE= GPLv2
MAKE_ARGS= CFLAGS="${CFLAGS} -DVERSION=\\\"${PORTVERSION}\\\""
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bitedit ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/bitedit.txt ${DOCSDIR}/bitedit.txt
.endif
${INSTALL_PROGRAM} ${WRKSRC}/bitedit ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/bitedit.txt ${STAGEDIR}${DOCSDIR}/bitedit.txt
.include <bsd.port.mk>

View File

@ -0,0 +1,13 @@
--- ./Makefile.orig 2003-05-27 14:23:25.000000000 +0200
+++ ./Makefile 2014-02-19 13:50:29.293943342 +0100
@@ -9,8 +9,8 @@
DISTFILE=bitedit-$(VERSION).tar.gz
DEFINES=-DVERSION=\"$(VERSION)\"
-CFLAGS=-g -Wall $(DEFINES)
-LD=$(CC) -g -Wall
+CFLAGS+=-Wall $(DEFINES)
+LD=$(CC) -Wall
all: $(TARGETS)