freebsd-ports/japanese/dbskkd-cdb/files/patch-Makefile
Makoto Matsushita e3226f9ae1 Update to version 2.00 (yes, major _release_ version).
As you know, 1.71dev does chroot(2) to the directory that dictionary
is located, and this makes the server configuration a little bit confused.
1.71dev also uses stderr as debugging information output, so that it may
affect some clients if dbskkd-cdb is kicked from inetd(8).

But these annoyed days are over.  2.00 behavior is backed to the one
as of 1.01; no chroot(2), no debug output to stderr (yeah!).

From this version, dbskkd-cdb uses tinycdb instead of original cdb.
For Makefile simplicity, this ports BUILD_DEPENDS to tinycdb.  Thanks
to higher compatibility between tinycdb and cdb, you don't need to
rebuild CDB dictionary file; ports/japanese/skk-jisyo-cdb is not changed.

I've removed two patches, the one is just unneeded for now, and the another
one is for ports understandability (patch-aa is not a good idea; I can keep
this, but this is the second major version release -- it is a good time
to rename the patch file.)

Thank you to Kenji Rikitake, the dbskkd-cdb author, to let me to know
the 2.00 release in advance, and give some time to update this ports.
2009-02-10 17:04:26 +00:00

26 lines
691 B
Text

--- Makefile.dist 2009-02-06 11:56:47.000000000 +0900
+++ Makefile 2009-02-11 01:31:03.000000000 +0900
@@ -1,9 +1,11 @@
# dbskkd-cdb Makefile
-CC = cc -Wall -O2 -g -I/usr/local/include
+PREFIX = ${LOCALBASE}
+CC = cc ${CFLAGS} -I${PREFIX}/include
COMPAT =
-CDBLIB = /usr/local/lib/libcdb.a
-INSTALLDIR = /usr/local/libexec
+CDBLIB = ${PREFIX}/lib/libcdb.a
+INSTALLDIR = ${PREFIX}/libexec
+JISYOFILE = ${SKKJISYOCDB}
.c.o:
$(CC) $(COMPAT) $(PRIVATE) -c $*.c
@@ -18,7 +20,7 @@
dbskkd-cdb.o ${CDBLIB}
dbskkd-cdb.o: dbskkd-cdb.c
- $(CC) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c
+ $(CC) $(COMPAT) $(PRIVATE) -DJISYO_FILE=\"$(JISYOFILE)\" -c dbskkd-cdb.c
error.o: error.c error.h