pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/trio Libtoolify trio. Bump revision.
details: https://anonhg.NetBSD.org/pkgsrc/rev/21e78df81471
branches: trunk
changeset: 509851:21e78df81471
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Mar 15 16:44:50 2006 +0000
description:
Libtoolify trio. Bump revision.
diffstat:
devel/trio/Makefile | 18 +++++-------------
devel/trio/PLIST | 4 ++--
devel/trio/files/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 53 insertions(+), 15 deletions(-)
diffs (100 lines):
diff -r ce3de6d5ca6f -r 21e78df81471 devel/trio/Makefile
--- a/devel/trio/Makefile Wed Mar 15 16:34:13 2006 +0000
+++ b/devel/trio/Makefile Wed Mar 15 16:44:50 2006 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2006/03/04 21:29:30 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2006/03/15 16:44:50 joerg Exp $
#
DISTNAME= trio-1.3
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.contactor.se/~dast/stuff/
@@ -9,20 +10,11 @@
HOMEPAGE= http://www.contactor.se/~dast/trio/
COMMENT= Fully matured and stable set of printf and string functions
+USE_LIBTOOL= yes
+
INSTALLATION_DIRS= include lib man/man3
post-patch:
- ${SED} "s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/Makefile \
- > ${WRKSRC}/Makefile.done
- ${MV} ${WRKSRC}/Makefile.done ${WRKSRC}/Makefile
-
-do-install:
- cd ${WRKSRC} && \
- ${INSTALL_DATA} trio.h triop.h ${PREFIX}/include
- cd ${WRKSRC} && \
- ${INSTALL_DATA} libtrio.a ${PREFIX}/lib
- cd ${WRKSRC}/man/man3 && \
- ${INSTALL_MAN} trio_printf.3 trio_scanf.3 \
- trio_register.3 strio.3 ${PREFIX}/man/man3
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
.include "../../mk/bsd.pkg.mk"
diff -r ce3de6d5ca6f -r 21e78df81471 devel/trio/PLIST
--- a/devel/trio/PLIST Wed Mar 15 16:34:13 2006 +0000
+++ b/devel/trio/PLIST Wed Mar 15 16:44:50 2006 +0000
@@ -1,7 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:27:09 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2006/03/15 16:44:50 joerg Exp $
include/trio.h
include/triop.h
-lib/libtrio.a
+lib/libtrio.la
man/man3/strio.3
man/man3/trio_printf.3
man/man3/trio_register.3
diff -r ce3de6d5ca6f -r 21e78df81471 devel/trio/files/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/trio/files/Makefile Wed Mar 15 16:44:50 2006 +0000
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2006/03/15 16:44:50 joerg Exp $
+
+LIB= libtrio
+LIB_VER= 1:0
+LIBS?= -lm
+
+SRCS= trio.c strio.c
+HDRS= trio.h triop.h
+OBJS= ${SRCS:.c=.lo}
+
+PREFIX?= /usr/local
+LIBDIR?= ${PREFIX}/lib
+INCLUDEDIR?= ${PREFIX}/include
+MANDIR?= ${PREFIX}/${PKGMANDIR}
+MANDIR3?= ${MANDIR}/man3
+
+BSD_INSTALL?= install
+BSD_INSTALL_DIR?= ${BSD_INSTALL} -d
+BSD_INSTALL_DATA?= ${BSD_INSTALL} -m 444
+BSD_INSTALL_LIB?= ${BSD_INSTALL} -m 644
+LIBTOOL?= libtool
+LN?= ln
+RM?= rm
+
+.SUFFIXES: .lo
+.PHONY: all clean install
+
+.c.lo:
+ ${LIBTOOL} --mode=compile ${CC} -o $@ -c ${CFLAGS} ${CPPFLAGS} $<
+
+all: ${LIB}.la
+
+clean:
+ -${LIBTOOL} --mode=clean ${RM} ${OBJS} ${LIB}.la
+
+install:
+ ${BSD_INSTALL_DIR} ${LIBDIR} ${INCLUDEDIR}
+ ${BSD_INSTALL_DATA} ${HDRS} ${INCLUDEDIR}
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} ${LIB}.la ${LIBDIR}/${LIB}.la
+ ${BSD_INSTALL_DIR} ${MANDIR3}
+ ${BSD_INSTALL_DATA} man/man3/strio.3 man/man3/trio_printf.3 \
+ man/man3/trio_register.3 man/man3/trio_scanf.3 ${MANDIR3}
+
+${LIB}.la: ${OBJS}
+ ${LIBTOOL} --mode=link ${CC} -o $@ ${CFLAGS} ${LDFLAGS} \
+ -rpath ${LIBDIR} -version-info ${LIB_VER} ${OBJS} ${LIBS}
Home |
Main Index |
Thread Index |
Old Index