Skip to content
Permalink
Browse files

new port devel/libconfig

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14697 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 18, 2005
1 parent eb6853d commit f7bcf9fb425337cbadbf46636aed25b5ea60515f
Showing with 65 additions and 0 deletions.
  1. +27 −0 devel/libconfig/Portfile
  2. +38 −0 devel/libconfig/files/patch-Makefile.in
@@ -0,0 +1,27 @@
# $Id: Portfile,v 1.1 2005/10/18 22:43:31 mww Exp $

PortSystem 1.0

name libconfig
version 0.1.21
categories devel
platforms darwin
maintainers mww@opendarwin.org
description configuration file processing library
long_description Libconfig is a configuration file processing library that \
saves you from having to write your own configuration parsers and \
routines. It supports callback functions, automatic variable \
assignment, and many different configuration file types such as \
Apache-like, Windows INI-like, and whitespace separated. \
Configuration is processed in a logical manner: global \
configuration files, local configuration files, environment \
variables, and finally command line options.

homepage http://www.rkeene.org/oss/libconfig/
master_sites http://www.rkeene.org/files/oss/libconfig/devel/
checksums md5 ea7bbfd6e654cfaaec9f50331ff617ab
patchfiles patch-Makefile.in

configure.args --mandir=\\\${prefix}/share/man

destroot.destdir prefix=${destroot}${prefix}
@@ -0,0 +1,38 @@
--- Makefile.in 2005-08-28 20:09:28.000000000 +0200
+++ Makefile.in 2005-10-19 00:39:21.000000000 +0200
@@ -28,15 +28,15 @@
libdir = @libdir@
includedir = @includedir@

-LIBS = libconfig.$(AREXT) libconfig.$(SHOBJEXT)
+LIBS = libconfig.$(AREXT) libconfig.$(PKGVERS).$(SHOBJEXT)
BINS =
# The following two lines need to be kept syncronised.
OBJS = libconfig.o conf_space.o conf_section.o conf_apache.o conf_colon.o conf_equal.o conf_xml.o @LIBOBJS@
SHOBJS = libconfig_shr.o conf_space_shr.o conf_section_shr.o conf_apache_shr.o conf_colon_shr.o conf_equal_shr.o conf_xml_shr.o @SHLIBOBJS@

all: $(LIBS) $(BINS)
-libconfig.$(SHOBJEXT): $(SHOBJS)
- $(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) $(SHOBJLDFLAGS) -o $@ $^ $(LDFLAGS)
+libconfig.$(PKGVERS).$(SHOBJEXT): $(SHOBJS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(SHOBJFLAGS) $(SHOBJLDFLAGS) -o $@ $^ $(LDFLAGS) -install_name $(libdir)/$@ -current_version $(PKGVERS)

libconfig.$(AREXT): $(OBJS)
$(AR) rcu $@ $^
@@ -69,7 +69,7 @@
-$(INSTALL) -d $(includedir)
-$(INSTALL) -m 644 libconfig.$(SHOBJEXT).def $(libdir)/libconfig.$(SHOBJEXT).def
-$(INSTALL) -m 644 libconfig.$(SHOBJEXT).a $(libdir)/libconfig.$(SHOBJEXT).a
- $(INSTALL) -m 755 libconfig.$(SHOBJEXT) $(libdir)/libconfig.$(SHOBJEXT).$(PKGVERS)
+ $(INSTALL) -m 755 libconfig.$(PKGVERS).$(SHOBJEXT) $(libdir)/
$(INSTALL) -m 644 libconfig.$(AREXT) $(libdir)/libconfig.$(AREXT)
$(INSTALL) -m 644 lc_register_callback.3 $(mandir)/man3/lc_register_callback.3
$(INSTALL) -m 644 lc_register_var.3 $(mandir)/man3/lc_register_var.3
@@ -80,5 +80,5 @@
$(INSTALL) -m 644 lc_cleanup.3 $(mandir)/man3/lc_cleanup.3
$(INSTALL) -m 644 libconfig.3 $(mandir)/man3/libconfig.3
$(INSTALL) -m 644 libconfig.h $(includedir)/libconfig.h
- -( cd $(libdir) && rm -f libconfig.$(SHOBJEXT).$(PKGVERSMAJOR) && $(LN_S) libconfig.$(SHOBJEXT).$(PKGVERS) libconfig.$(SHOBJEXT).$(PKGVERSMAJOR) )
- -( cd $(libdir) && rm -f libconfig.$(SHOBJEXT) && $(LN_S) libconfig.$(SHOBJEXT).$(PKGVERS) libconfig.$(SHOBJEXT) )
+ -( cd $(libdir) && rm -f libconfig.$(SHOBJEXT).$(PKGVERSMAJOR) && $(LN_S) libconfig..$(PKGVERS).$(SHOBJEXT) libconfig.$(PKGVERSMAJOR).$(SHOBJEXT) )
+ -( cd $(libdir) && rm -f libconfig.$(SHOBJEXT) && $(LN_S) libconfig.$(PKGVERS).$(SHOBJEXT) libconfig.$(SHOBJEXT) )

0 comments on commit f7bcf9f

Please sign in to comment.
You can’t perform that action at this time.