svn commit: r335491 - in head/devel/libgetline: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Dec 2 14:27:53 UTC 2013
Author: sunpoet
Date: Mon Dec 2 14:27:51 2013
New Revision: 335491
URL: http://svnweb.freebsd.org/changeset/ports/335491
Log:
- Add LICENSE
- Support STAGEDIR
- While I'm here:
- Do not use hardcoded DISTNAME and WRKSRC
- Remove leading indefinite article from COMMENT
PR: ports/184430
Submitted by: Rodrigo Osorio <rodrigo at bebik.net> (maintainer)
Modified:
head/devel/libgetline/Makefile
head/devel/libgetline/files/patch-ab (contents, props changed)
head/devel/libgetline/pkg-plist (contents, props changed)
Modified: head/devel/libgetline/Makefile
==============================================================================
--- head/devel/libgetline/Makefile Mon Dec 2 14:05:57 2013 (r335490)
+++ head/devel/libgetline/Makefile Mon Dec 2 14:27:51 2013 (r335491)
@@ -5,16 +5,27 @@ PORTNAME= getline
PORTVERSION= 3.9
CATEGORIES= devel
MASTER_SITES= http://rodrigo.osorio.free.fr/freebsd/distfiles/
-DISTNAME= ${PORTNAME}-39-src
+DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}-src
MAINTAINER= rodrigo at bebik.net
-COMMENT= A small, portable, and easy to use command line library
+COMMENT= Small, portable, and easy to use command line library
-MAN3= getline.3
+LICENSE= BSD
-WRKSRC= ${WRKDIR}/getline-39
+WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
USE_LDCONFIG= yes
-NO_STAGE= yes
+MAKE_ENV+= AR="${AR}"
+MAKE_ENV+= CC="${CC}"
+MAKE_ENV+= INSTALL="${INSTALL}"
+MAKE_ENV+= LN="${LN}"
+MAKE_ENV+= RANLIB="${RANLIB}"
+MAKE_ENV+= INST_INCDIR="${STAGEDIR}${PREFIX}/include"
+MAKE_ENV+= INST_LIBDIR="${STAGEDIR}${PREFIX}/lib"
+MAKE_ENV+= INST_MANDIR="${STAGEDIR}${PREFIX}/man"
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgetline.so
+
.include <bsd.port.mk>
Modified: head/devel/libgetline/files/patch-ab
==============================================================================
--- head/devel/libgetline/files/patch-ab Mon Dec 2 14:05:57 2013 (r335490)
+++ head/devel/libgetline/files/patch-ab Mon Dec 2 14:27:51 2013 (r335491)
@@ -1,25 +1,12 @@
---- Makefile Thu Jan 15 02:16:07 1998
-+++ Makefile Sun Mar 21 18:04:04 1999
-@@ -1,46 +1,54 @@
+--- Makefile
++++ Makefile
+@@ -1,46 +1,43 @@
-#CC = gcc
-#CFLAGS = -Wall -DPOSIX
+PREFIX?= /usr/local
-
--CC= cc
--CFLAGS = -v -DPOSIX
-+AR= /usr/bin/ar
-+CC= /usr/bin/cc
-+INSTALL= /usr/bin/install
-+LN= /bin/ln
-+RANLIB= /usr/bin/ranlib
-+
+CFLAGS= -DPOSIX -O
+LDFLAGS=
+
-+INST_INCDIR= $(PREFIX)/include
-+INST_LIBDIR= $(PREFIX)/lib
-+INST_MANDIR= $(PREFIX)/man
-+
+SHLIB_VERSION = 1
+SHLIB_CFLAGS = -fpic -DPIC
+SHLIB_LDFLAGS = -shared
@@ -32,6 +19,9 @@
+testgl: libgetline.a testgl.o
+ $(CC) $(LDFLAGS) $(CFLAGS) -o testgl testgl.o -L$(INST_MANDIR) -lgetline
+-CC= cc
+-CFLAGS = -v -DPOSIX
+-
-LDFLAGS=
-INSTALL_PATH=/usr/local
-INST_LIBDIR=$(INSTALL_PATH)/lib
@@ -84,7 +74,7 @@
+ [ -d $(INST_LIBDIR) ] || $(INSTALL) -d $(INST_LIBDIR)
+ $(INSTALL) -c -g bin -o bin -m 644 libgetline.a libgetline.so.1 \
+ $(INST_LIBDIR)
-+ $(LN) -fs $(INST_LIBDIR)/libgetline.so.$(SHLIB_VERSION) \
++ $(LN) -fs libgetline.so.$(SHLIB_VERSION) \
+ $(INST_LIBDIR)/libgetline.so
+ [ -d $(INST_MANDIR)/man3 ] || $(INSTALL) -d $(INST_MANDIR)/man3
+ $(INSTALL) -c -g bin -o bin -m 644 getline.3 $(INST_MANDIR)/man3
Modified: head/devel/libgetline/pkg-plist
==============================================================================
--- head/devel/libgetline/pkg-plist Mon Dec 2 14:05:57 2013 (r335490)
+++ head/devel/libgetline/pkg-plist Mon Dec 2 14:27:51 2013 (r335491)
@@ -2,3 +2,4 @@ include/getline.h
lib/libgetline.a
lib/libgetline.so
lib/libgetline.so.1
+man/man3/getline.3.gz
More information about the svn-ports-head
mailing list