diff options
author | dirk <dirk@FreeBSD.org> | 2001-11-24 23:19:53 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2001-11-24 23:19:53 +0800 |
commit | da76ca5cc5bf439cd4bce358a8c249ed1bb7b957 (patch) | |
tree | a0fcd5f6c1e0151d8babbbfdb2c495bce122a571 /misc/libmcal/files | |
parent | 38baac923b516dc8951c80aeb6b4d23f07ef1b02 (diff) | |
download | freebsd-ports-gnome-da76ca5cc5bf439cd4bce358a8c249ed1bb7b957.tar.gz freebsd-ports-gnome-da76ca5cc5bf439cd4bce358a8c249ed1bb7b957.tar.zst freebsd-ports-gnome-da76ca5cc5bf439cd4bce358a8c249ed1bb7b957.zip |
Add libmcal - a Modular Calendar Access Library
PR: ports/31416
Submitted by: Thierry Thomas <thierry@thomas.as>
Diffstat (limited to 'misc/libmcal/files')
-rw-r--r-- | misc/libmcal/files/patch-aa | 15 | ||||
-rw-r--r-- | misc/libmcal/files/patch-ab | 32 | ||||
-rw-r--r-- | misc/libmcal/files/patch-ac | 83 |
3 files changed, 130 insertions, 0 deletions
diff --git a/misc/libmcal/files/patch-aa b/misc/libmcal/files/patch-aa new file mode 100644 index 000000000000..1f8c19567836 --- /dev/null +++ b/misc/libmcal/files/patch-aa @@ -0,0 +1,15 @@ +--- mstore/Makefile.orig Sat Feb 5 06:48:22 2000 ++++ mstore/Makefile Mon Oct 15 12:05:54 2001 +@@ -1,9 +1,8 @@ + # $Id: Makefile.FreeBSD,v 1.1 2000/02/05 05:48:22 mayo Exp $ + +-CC=gcc +-FLEX=flex +-INCLUDE=-I.. +-CFLAGS=-O0 -Wall -g $(INCLUDE) ++FLEX=/usr/bin/flex ++INCLUDE=-I.. -I/usr/include/rpcsvc/ ++CFLAGS+=-Wall $(INCLUDE) + ALLOBJS=mstore.o + TARGET=mstore_driver.o + diff --git a/misc/libmcal/files/patch-ab b/misc/libmcal/files/patch-ab new file mode 100644 index 000000000000..a8c02434e773 --- /dev/null +++ b/misc/libmcal/files/patch-ab @@ -0,0 +1,32 @@ +--- icap/Makefile.orig Sat Feb 5 06:50:57 2000 ++++ icap/Makefile Tue Oct 16 22:54:11 2001 +@@ -1,10 +1,9 @@ + #$Id: Makefile.FreeBSD,v 1.1 2000/02/05 05:50:57 mayo Exp $ + +-CC=gcc +-FLEX=flex ++FLEX=/usr/bin/flex + INCLUDE=-I.. +-CFLAGS=-O0 -Wall -g $(INCLUDE) +-ALLOBJS=icap.o icaproutines.o lex.ical_yy.o lex.icap_yy.o ++CFLAGS+=-Wall $(INCLUDE) ++ALLOBJS=icap.o icaproutines.o lex.icap_yy.o + TARGET=icap_driver.o + + all: $(TARGET) +@@ -14,14 +13,11 @@ + ld -r -o $(TARGET) $(ALLOBJS) + touch bootstrap.in + +-lex.ical_yy.c: icalscanner.lex +- $(FLEX) icalscanner.lex +- + lex.icap_yy.c: icapscanner.lex + $(FLEX) icapscanner.lex + + clean: +- rm -f $(ALLOBJS) $(TARGET) lex.ical_yy.c lex.icap_yy.c bootstrap.in ++ rm -f $(ALLOBJS) $(TARGET) lex.icap_yy.c bootstrap.in + + dep: depend + diff --git a/misc/libmcal/files/patch-ac b/misc/libmcal/files/patch-ac new file mode 100644 index 000000000000..02c433bafe1f --- /dev/null +++ b/misc/libmcal/files/patch-ac @@ -0,0 +1,83 @@ +--- Makefile.in.orig Tue Jan 25 04:08:10 2000 ++++ Makefile.in Sun Oct 21 23:22:16 2001 +@@ -1,45 +1,63 @@ +-# $Id: Makefile.in,v 1.2 2000/01/25 03:08:10 markie Exp $ +- +-CC=gcc +-FLEX=flex ++# $Id: Makefile.in,v 1.5 2001/07/03 16:03:19 rufustfirefly Exp $ + ++FLEX=/usr/bin/flex + + @BOOTSTRAP@ + + INCLUDE=@DRIVER_INCDIR@ ${OTHERINCDIR} -I. + +-CFLAGS=-O0 -Wall -g ${INCLUDE} ++CFLAGS+=-Wall ${INCLUDE} ${OTHER_CFLAGS} -D_REENTRANT + + LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS) + ALLOBJS=${LIBOBJS} tester.o + OTHERLIBS=${OTHERLIBS} + OTHERLIBDIR=${OTHERLIBDIR} + ++SHLIBLDFLAGS=-shared ++REV=0.6 ++ + LIBCAL=libmcal.a ++LIBCAL_SO=libmcal.so + +-all: libmcal.a ++all: $(LIBCAL) $(LIBCAL_SO).$(REV) + +-install: libmcal.a +- mkdir /usr/local/mcal +- mkdir /usr/local/mcal/lib +- mkdir /usr/local/mcal/include +- cp libmcal.a /usr/local/mcal/lib +- cp mcal.h bool.h datetime.h drivers.h /usr/local/mcal/include +-libmcal.a: $(LIBOBJS) ++install: all ++ mkdir -p ${DESTDIR}@prefix@/lib/ ++ mkdir -p ${DESTDIR}@prefix@/include/mcal/ ++ rm -f ${DESTDIR}@prefix@/lib/$(LIBCAL_SO) ++ install -m 755 -o 0 -g 0 $(LIBCAL) $(LIBCAL_SO).0 ${DESTDIR}@prefix@/lib ++ ln -s ${DESTDIR}@prefix@/lib/$(LIBCAL_SO).0 ${DESTDIR}@prefix@/lib/$(LIBCAL_SO) ++ install -m 644 -o 0 -g 0 \ ++ mcal.h bool.h datetime.h drivers.h cal_misc.h icalroutines.h \ ++ ${DESTDIR}@prefix@/include/mcal/ ++ touch installed ++ ++install-strip: installed ++ strip ${DESTDIR}@prefix@/lib/$(LIBCAL_SO).$(REV) ++ strip ${DESTDIR}@prefix@/lib/$(LIBCAL) ++ ++$(LIBCAL): $(LIBOBJS) + rm -f $(LIBCAL) + ar r $(LIBCAL) $(LIBOBJS) + ++$(LIBCAL_SO).$(REV): $(LIBOBJS) ++ rm -f $@ ++ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(LIBOBJS) ++ strip --strip-unneeded $@ ++ rm -f $(LIBCAL_SO).0 ++ ln -s $@ $(LIBCAL_SO).0 ++ + lex.ical_yy.c: icalscanner.lex + $(FLEX) $< + +-tester: tester.o libmcal.a +- gcc -Wall -g -o tester tester.o $(LIBCAL) -lcrypt ++tester: tester.o $(LIBCAL) ++ $(CC) $(CFLAGS) -Wall -g -o tester tester.o $(LIBCAL) -lcrypt + + clean: +- rm -f *.o $(LIBCAL) tester ++ rm -f *.o *~ core $(LIBCAL) $(LIBCAL_SO) tester installed + + distclean: clean +- rm -f config.cache config.status config.log Makefile drivers.c drivers.h bootstrap.in ++ rm -f config.cache config.status config.log Makefile drivers.c drivers.h bootstrap.in + + + dep: depend |