Changeset e72c7ab in freewrt


Ignore:
Timestamp:
Jan 13, 2007, 5:03:48 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Children:
7fb0443
Parents:
623b9e0
Message:

convert to new style

git-svn-id: svn://www.freewrt.org/branches/common-adk@1578 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • package/cbtt/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              cbtt
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            19abea2817c49ccc9438e9671c402984
     13PKG_SOURCE:=            ${PKG_NAME}80-${PKG_VERSION}-src.tar.gz
     14PKG_SOURCE_URL:=        @SF/bnbtusermods
     15WRKSRC=                 ${WRKDIR}/${PKG_NAME}80-${PKG_VERSION}-src
    1316
    14 PKG_SOURCE_URL:=        @SF/bnbtusermods
    15 PKG_SOURCE:=            $(PKG_NAME)80-$(PKG_VERSION)-src.tar.gz
     17include ${TOPDIR}/mk/package.mk
    1618
    17 WRKSRC=                 ${WRKDIR}/$(PKG_NAME)80-$(PKG_VERSION)-src
     19$(eval $(call PKG_template,CBTT,cbtt,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
     20$(eval $(call PKG_template,CBTT_MYSQL,cbtt-mysql,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1821
    19 include $(TOPDIR)/mk/package.mk
     22BUILD_STYLE=            auto
     23TLDFLAGS+=              -L. -L${STAGING_DIR}/usr/lib/mysql \
     24                        -lpthread -lz -lmysqlclient -nodefaultlibs \
     25                        -luClibc++ -lc -lm -lgcc
     26TCXXFLAGS+=             -fno-builtin -fno-rtti -nostdinc++
    2027
    21 $(eval $(call PKG_template,CBTT,cbtt,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    22 $(eval $(call PKG_template,CBTT_MYSQL,cbtt-mysql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    23 
    24 $(WRKBUILD)/.configured:
    25         touch $@
    26 
    27 $(WRKBUILD)/.built:
    28         rm -rf $(WRKINST)
    29         mkdir -p $(WRKINST)
    30         $(MAKE) -C $(WRKBUILD) \
    31                 $(TARGET_CONFIGURE_OPTS) \
    32                 LFLAGS="-L$(STAGING_DIR)/usr/lib -L $(STAGING_DIR)/usr/lib/mysql -L. -lz -lmysqlclient" \
    33                 CFLAGS="-I$(STAGING_DIR)/usr/include"
    34         mkdir -p $(WRKINST)/usr/bin
    35         $(CP) $(WRKBUILD)/bnbt $(WRKINST)/usr/bin/
    36         $(CP) $(WRKBUILD)/bnbtmysql $(WRKINST)/usr/bin/
    37         touch $@
    38 
    39 $(IPKG_CBTT):
    40         install -d -m0755 $(IDIR_CBTT)/usr/bin
    41         install -m0755 $(WRKINST)/usr/bin/bnbt $(IDIR_CBTT)/usr/bin/
    42         $(RSTRIP) $(IDIR_CBTT)
    43         $(IPKG_BUILD) $(IDIR_CBTT) $(PACKAGE_DIR)
    44 
    45 $(IPKG_CBTT_MYSQL):
    46         install -d -m0755 $(IDIR_CBTT_MYSQL)/usr/bin
    47         install -m0755 $(WRKINST)/usr/bin/bnbtmysql $(IDIR_CBTT_MYSQL)/usr/bin/
    48         $(RSTRIP) $(IDIR_CBTT_MYSQL)
    49         $(IPKG_BUILD) $(IDIR_CBTT_MYSQL) $(PACKAGE_DIR)
     28do-install:
     29        ${INSTALL_DIR} ${IDIR_CBTT}/usr/bin
     30        ${INSTALL_BIN} ${WRKBUILD}/bnbt ${IDIR_CBTT}/usr/bin/
     31        ${INSTALL_DIR} ${IDIR_CBTT_MYSQL}/usr/bin
     32        ${INSTALL_BIN} ${WRKBUILD}/bnbtmysql ${IDIR_CBTT_MYSQL}/usr/bin/
    5033
    5134include ${TOPDIR}/mk/pkg-bottom.mk
  • package/collectd/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              collectd
     
    1212PKG_MD5SUM:=            1e5cab09394e0e5a1e5b3f8c923858a3
    1313PKG_INIT:=              75
    14 
    1514PKG_SOURCE_URL:=        http://verplant.org/collectd/files
    1615
    17 include $(TOPDIR)/mk/package.mk
     16include ${TOPDIR}/mk/package.mk
    1817
    19 $(eval $(call PKG_template,COLLECTD,collectd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     18$(eval $(call PKG_template,COLLECTD,collectd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2019
    21 ifneq ($(FWRT_PACKAGE_COLLECTD_CPU),y)
     20ifneq (${FWRT_PACKAGE_COLLECTD_CPU},y)
    2221DISABLE_CPU:=--disable-cpu
    2322endif
    24 ifneq ($(FWRT_PACKAGE_COLLECTD_LOAD),y)
     23ifneq (${FWRT_PACKAGE_COLLECTD_LOAD},y)
    2524DISABLE_LOAD:=--disable-load
    2625endif
    27 ifneq ($(FWRT_PACKAGE_COLLECTD_MEMORY),y)
     26ifneq (${FWRT_PACKAGE_COLLECTD_MEMORY},y)
    2827DISABLE_MEMORY:=--disable-memory
    2928endif
    30 ifneq ($(FWRT_PACKAGE_COLLECTD_PING),y)
     29ifneq (${FWRT_PACKAGE_COLLECTD_PING},y)
    3130DISABLE_PING:=--disable-ping
    3231endif
    33 ifneq ($(FWRT_PACKAGE_COLLECTD_TRAFFIC),y)
     32ifneq (${FWRT_PACKAGE_COLLECTD_TRAFFIC},y)
    3433DISABLE_TRAFFIC:=--disable-traffic
    3534endif
    3635
    37 $(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
    38         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    39                 $(TARGET_CONFIGURE_OPTS) \
    40                 CFLAGS="$(strip $(TARGET_CFLAGS))" \
    41                 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
    42                 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
    43                 ./configure \
    44                   --target=$(GNU_TARGET_NAME) \
    45                   --host=$(GNU_TARGET_NAME) \
    46                   --build=$(GNU_HOST_NAME) \
    47                   --program-prefix="" \
    48                   --program-suffix="" \
    49                   --prefix=/usr \
    50                   --exec-prefix=/usr \
    51                   --bindir=/usr/bin \
    52                   --datadir=/usr/share \
    53                   --includedir=/usr/include \
    54                   --infodir=/usr/share/info \
    55                   --libdir=/usr/lib \
    56                   --libexecdir=/usr/lib \
    57                   --localstatedir=/var \
    58                   --mandir=/usr/share/man \
    59                   --sbindir=/usr/sbin \
    60                   --sysconfdir=/etc \
    61                   --enable-shared \
    62                   --disable-static \
    63                   --disable-debug \
    64                   $(DISABLE_CPU) \
    65                   $(DISABLE_LOAD) \
    66                   $(DISABLE_MEMORY) \
    67                   $(DISABLE_PING) \
    68                   $(DISABLE_TRAFFIC) \
    69                   --disable-cpufreq \
    70                   --disable-disk \
    71                   --disable-hddtemp \
    72                   --disable-nfs \
    73                   --disable-processes \
    74                   --disable-sensors \
    75                   --disable-serial \
    76                   --disable-swap \
    77                   --disable-tape \
    78                   --disable-users \
    79                   --disable-apache \
    80         );
    81         touch $@
     36CONFIGURE_STYLE=        gnu
     37CONFIGURE_ARGS+=        ${DISABLE_CPU} \
     38                        ${DISABLE_LOAD} \
     39                        ${DISABLE_MEMORY} \
     40                        ${DISABLE_PING} \
     41                        ${DISABLE_TRAFFIC} \
     42                        --disable-cpufreq \
     43                        --disable-disk \
     44                        --disable-hddtemp \
     45                        --disable-nfs \
     46                        --disable-processes \
     47                        --disable-sensors \
     48                        --disable-serial \
     49                        --disable-swap \
     50                        --disable-tape \
     51                        --disable-users \
     52                        --disable-apache \
     53                        --disable-debug
     54BUILD_STYLE=            auto
     55INSTALL_STYLE=          auto
    8256
    83 $(WRKBUILD)/.built: $(WRKBUILD)/.configured
    84         $(MAKE) -C $(WRKBUILD)
    85         mkdir -p $(WRKINST)
    86         $(MAKE) -C $(WRKBUILD) \
    87                 DESTDIR="$(WRKINST)" \
    88                 install
    89         touch $@
    90 
    91 $(IPKG_COLLECTD):
    92         install -d -m0755 $(IDIR_COLLECTD)/etc/init.d
    93         install -d -m0755 $(IDIR_COLLECTD)/usr/sbin
    94         install -d -m0755 $(IDIR_COLLECTD)/usr/lib/collectd
    95         install -d -m0755 $(IDIR_COLLECTD)/var/lib/collectd
    96         install -d -m0755 $(IDIR_COLLECTD)/var/run
    97         $(INSTALL_BIN) ./files/collectd.init \
    98                 $(IDIR_COLLECTD)/etc/init.d/S$(PKG_INIT)collectd
    99         $(CP) $(WRKINST)/usr/sbin/collectd $(IDIR_COLLECTD)/usr/sbin/
    100         $(CP) $(WRKINST)/usr/lib/collectd/*.so $(IDIR_COLLECTD)/usr/lib/collectd/
    101         $(RSTRIP) $(IDIR_COLLECTD)
    102         $(IPKG_BUILD) $(IDIR_COLLECTD) $(PACKAGE_DIR)
     57post-install:
     58        ${INSTALL_DIR} ${IDIR_COLLECTD}/etc/init.d
     59        ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/sbin
     60        ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/lib/collectd
     61        ${INSTALL_DIR} ${IDIR_COLLECTD}/var/lib/collectd
     62        ${INSTALL_DIR} ${IDIR_COLLECTD}/var/run
     63        ${INSTALL_BIN} ./files/collectd.init \
     64                ${IDIR_COLLECTD}/etc/init.d/S${PKG_INIT}collectd
     65        ${CP} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/
     66        ${CP} ${WRKINST}/usr/lib/collectd/*.so ${IDIR_COLLECTD}/usr/lib/collectd/
    10367
    10468include ${TOPDIR}/mk/pkg-bottom.mk
  • package/comgt/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              comgt
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            db2452680c3d953631299e331daf49ef
    13 
     13PKG_SOURCE:=            ${PKG_NAME}.${PKG_VERSION}.tgz
    1414PKG_SOURCE_URL:=        @SF/comgt
    15 PKG_SOURCE:=            $(PKG_NAME).$(PKG_VERSION).tgz
    16 
    1715WRKSRC=                 ${WRKDIR}/${PKG_NAME}.${PKG_VERSION}
    1816
    19 include $(TOPDIR)/mk/package.mk
     17include ${TOPDIR}/mk/package.mk
    2018
    21 $(eval $(call PKG_template,COMGT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     19$(eval $(call PKG_template,COMGT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2220
    23 $(WRKBUILD)/.configured:
    24         touch $@
     21BUILD_STYLE=            auto
     22ALL_TARGET=             comgt
    2523
    26 $(WRKBUILD)/.built:
    27         $(MAKE) -C $(WRKBUILD) \
    28             CC="$(TARGET_CC)" \
    29             CFLAGS="$(TARGET_CFLAGS)" \
    30             comgt
    31         touch $@
    32 
    33 $(IPKG_COMGT):
    34         install -d -m0755 $(IDIR_COMGT)/usr/bin
    35         install -m0755 $(WRKBUILD)/comgt $(IDIR_COMGT)/usr/bin/comgt
    36         install -d -m0755 $(IDIR_COMGT)/etc/comgt
    37         install -m0644 ./files/dial.comgt $(IDIR_COMGT)/etc/comgt/dial.comgt
    38         $(RSTRIP) $(IDIR_COMGT)
    39         $(IPKG_BUILD) $(IDIR_COMGT) $(PACKAGE_DIR)
     24do-install:
     25        ${INSTALL_DIR} ${IDIR_COMGT}/usr/bin
     26        ${INSTALL_DIR} ${IDIR_COMGT}/etc/comgt
     27        ${INSTALL_BIN} ${WRKBUILD}/comgt ${IDIR_COMGT}/usr/bin/comgt
     28        ${INSTALL_DATA} ./files/dial.comgt ${IDIR_COMGT}/etc/comgt/dial.comgt
    4029
    4130include ${TOPDIR}/mk/pkg-bottom.mk
  • package/ctorrent/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              ctorrent
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            6635e2d0d0ee21faeb85d95cd93c137b
     13PKG_SOURCE_URL:=        http://www.rahul.net/dholmes/ctorrent/
     14WRKSRC=                 ${WRKDIR}/${PKG_NAME}-dnh2
    1315
    14 PKG_SOURCE_URL:=        http://www.rahul.net/dholmes/ctorrent/
    15 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.gz
     16include ${TOPDIR}/mk/package.mk
    1617
    17 WRKSRC=                 ${WRKDIR}/$(PKG_NAME)-dnh2
     18$(eval $(call PKG_template,CTORRENT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1819
    19 include $(TOPDIR)/mk/package.mk
    20 
    21 $(eval $(call PKG_template,CTORRENT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    22 
    23 $(WRKBUILD)/.configured:
    24         (cd $(WRKBUILD); rm -rf config.cache; \
    25                 $(TARGET_CONFIGURE_OPTS) \
    26                 CFLAGS="$(TARGET_CFLAGS)" \
    27                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
    28                 LDFLAGS="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
    29                 ./configure \
    30                 --target=$(GNU_TARGET_NAME) \
    31                 --host=$(GNU_TARGET_NAME) \
    32                 --build=$(GNU_HOST_NAME) \
    33                 --prefix=/usr \
    34                 --exec-prefix=/usr \
    35                 --bindir=/usr/bin \
    36                 --sbindir=/usr/sbin \
    37                 --libexecdir=/usr/lib \
    38                 --sysconfdir=/etc \
    39                 --datadir=/usr/share \
    40                 --localstatedir=/var \
    41                 --mandir=/usr/man \
    42                 --infodir=/usr/info \
    43                 --program-prefix="" \
    44                 --with-gnu-ld \
    45         );
    46         touch $@
     20CONFIGURE_STYLE=        gnu
     21BUILD_STYLE=            auto
     22INSTALL_STYLE=          auto
     23FAKE_FLAGS+=            STAGING_DIR=${STAGING_DIR}
    4724       
    48 $(WRKBUILD)/.built:
    49         $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(WRKINST) -C $(WRKBUILD) install
    50         touch $@
    51        
    52 $(IPKG_CTORRENT):
    53         mkdir -p $(IDIR_CTORRENT)
    54         $(CP) $(WRKINST)/* $(IDIR_CTORRENT)/
    55         $(RSTRIP) $(IDIR_CTORRENT)/
    56         $(IPKG_BUILD) $(IDIR_CTORRENT) $(PACKAGE_DIR)
     25post-install:   
     26        ${INSTALL_DIR} ${IDIR_CTORRENT}
     27        ${CP} ${WRKINST}/* ${IDIR_CTORRENT}/
    5728
    5829include ${TOPDIR}/mk/pkg-bottom.mk
  • package/cups/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              cups
     
    1212PKG_MD5SUM:=            bf44783d9b46130bee9f2995e6055470
    1313PKG_INIT:=              60
     14PKG_SOURCE:=            ${PKG_NAME}-${PKG_VERSION}-source.tar.bz2
     15PKG_SOURCE_URL:=        http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/${PKG_VERSION} \
     16                        ftp://ftp3.easysw.com/pub/cups/${PKG_VERSION}
    1417
    15 PKG_SOURCE_URL:=        http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$(PKG_VERSION) \
    16                         ftp://ftp3.easysw.com/pub/cups/$(PKG_VERSION)
    17 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION)-source.tar.bz2
     18include ${TOPDIR}/mk/package.mk
    1819
    19 include $(TOPDIR)/mk/package.mk
     20$(eval $(call PKG_template,CUPS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2021
    21 $(eval $(call PKG_template,CUPS,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     22CONFIGURE_STYLE=        gnu
     23CONFIGURE_ENV+=         ac_cv_func_sigset=no
     24CONFIGURE_ARGS+=        --with-cups-user=root \
     25                        --with-cups-group=root \
     26                        --without-java \
     27                        --without-perl \
     28                        --without-python \
     29                        --without-php \
     30                        --disable-slp \
     31                        --disable-gnutls \
     32                        --disable-openssl \
     33                        --disable-cdsassl \
     34                        --disable-ssl
     35BUILD_STYLE=            auto
     36INSTALL_STYLE=          auto
     37FAKE_FLAGS+=            DSTROOT="${WRKINST}" STRIP="/bin/true"
    2238
    23 $(WRKBUILD)/.configured:
    24         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    25                 $(TARGET_CONFIGURE_OPTS) \
    26                 CFLAGS="$(TARGET_CFLAGS) -g" \
    27                 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
    28                 LDFLAGS="$(LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
    29                 ac_cv_func_sigset=no \
    30                 ./configure \
    31                   --target=$(GNU_TARGET_NAME) \
    32                   --host=$(GNU_TARGET_NAME) \
    33                   --build=$(GNU_HOST_NAME) \
    34                   --program-prefix="" \
    35                   --program-suffix="" \
    36                   --prefix=/usr \
    37                   --exec-prefix=/usr \
    38                   --bindir=/usr/bin \
    39                   --datadir=/usr/share \
    40                   --includedir=/usr/include \
    41                   --infodir=/usr/share/info \
    42                   --libdir=/usr/lib \
    43                   --libexecdir=/usr/lib \
    44                   --localstatedir=/var \
    45                   --mandir=/usr/share/man \
    46                   --sbindir=/usr/sbin \
    47                   --sysconfdir=/etc \
    48                   --disable-nls \
    49                   --with-gnu-ld \
    50                   --with-cups-user=root \
    51                   --with-cups-group=root \
    52                   --without-perl \
    53                   --without-python \
    54                   --without-php \
    55                   --disable-slp \
    56                   --disable-gnutls \
    57                   --disable-openssl \
    58                   --disable-cdsassl \
    59                   --disable-ssl \
    60                   --disable-slp \
    61         );
    62         touch $@
    63 
    64 $(WRKBUILD)/.built:
    65         rm -rf $(WRKINST)
    66         mkdir -p $(WRKINST)
    67         $(MAKE) -C $(WRKBUILD) \
    68                 DSTROOT="$(WRKINST)" \
    69                 STRIP="/bin/true" \
    70                 all install
    71         touch $@
    72 
    73 $(IPKG_CUPS):
    74         rm -rf $(IDIR_CUPS)/etc/cups
    75         install -d -m0755 $(IDIR_CUPS)/etc/cups
    76         $(CP) $(WRKINST)/etc/cups/* $(IDIR_CUPS)/etc/cups/
    77         rm $(IDIR_CUPS)/etc/cups/cupsd.conf.default
    78         install -d -m0755 $(IDIR_CUPS)/usr/bin
    79         $(CP) $(WRKINST)/usr/bin/* $(IDIR_CUPS)/usr/bin/
    80         install -d -m0755 $(IDIR_CUPS)/usr/share/doc/cups
    81         $(CP) $(WRKINST)/usr/share/doc/cups/index.html \
    82                 $(IDIR_CUPS)/usr/share/doc/cups/
    83         $(CP) $(WRKINST)/usr/share/doc/cups/*.css \
    84                 $(IDIR_CUPS)/usr/share/doc/cups/
    85         $(CP) $(WRKINST)/usr/share/doc/cups/images \
    86                 $(IDIR_CUPS)/usr/share/doc/cups/
    87         rm -f $(IDIR_CUPS)/usr/bin/cups-config
    88         install -d -m0755 $(IDIR_CUPS)/usr/lib
    89         $(CP) $(WRKINST)/usr/lib/libcups.so.* $(IDIR_CUPS)/usr/lib/
    90         install -d -m0755 $(IDIR_CUPS)/usr/share/cups/banners
    91         $(CP) $(WRKINST)/usr/share/cups/banners/* $(IDIR_CUPS)/usr/share/cups/banners/
    92         install -d -m0755 $(IDIR_CUPS)/usr/share/cups/templates
    93         $(CP) $(WRKINST)/usr/share/cups/templates/*.tmpl $(IDIR_CUPS)/usr/share/cups/templates/
    94         install -d -m0755 $(IDIR_CUPS)/usr/sbin
    95         $(CP) $(WRKINST)/usr/sbin/* $(IDIR_CUPS)/usr/sbin/
    96         # overwrite default config with our own
    97         $(CP) ./files/etc/cups/* $(IDIR_CUPS)/etc/cups/
    98         # install initscript with priority 60
    99         install -d -m0755 $(IDIR_CUPS)/etc/init.d
    100         install -m0755 ./files/cupsd.init \
    101                 $(IDIR_CUPS)/etc/init.d/S$(PKG_INIT)cupsd
    102         $(RSTRIP) $(IDIR_CUPS)
    103         $(IPKG_BUILD) $(IDIR_CUPS) $(PACKAGE_DIR)
    104 
    105 $(STAGING_DIR)/usr/lib/libcups.so: $(WRKBUILD)/.built
    106         mkdir -p $(STAGING_DIR)/usr/bin
    107         $(CP) $(WRKINST)/usr/bin/cups-config $(STAGING_DIR)/usr/bin/
    108         mkdir -p $(STAGING_DIR)/usr/include
    109         $(CP) $(WRKINST)/usr/include/cups $(STAGING_DIR)/usr/include/
    110         mkdir -p $(STAGING_DIR)/usr/lib
    111         $(CP) $(WRKINST)/usr/lib/libcups.so $(STAGING_DIR)/usr/lib/
    112 
    113 install-dev: $(STAGING_DIR)/usr/lib/libcups.so
    114 
    115 uninstall-dev:
    116         rm -rf \
    117           $(STAGING_DIR)/usr/bin/cups-config \
    118           $(STAGING_DIR)/usr/include/cups \
    119           $(STAGING_DIR)/usr/lib/libcups.so
    120 
    121 compile-targets: install-dev
    122 clean-targets: uninstall-dev
     39post-install:
     40        ${INSTALL_DIR} ${IDIR_CUPS}/etc/init.d
     41        ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/doc/cups
     42        ${INSTALL_DIR} ${IDIR_CUPS}/usr/bin
     43        ${INSTALL_DIR} ${IDIR_CUPS}/usr/sbin
     44        ${INSTALL_DIR} ${IDIR_CUPS}/etc/cups
     45        ${INSTALL_DIR} ${IDIR_CUPS}/usr/lib
     46        ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/banners
     47        ${INSTALL_DIR} ${IDIR_CUPS}/usr/share/cups/templates
     48        ${CP} ${WRKINST}/etc/cups/* ${IDIR_CUPS}/etc/cups/
     49        rm ${IDIR_CUPS}/etc/cups/cupsd.conf.default
     50        ${CP} ${WRKINST}/usr/bin/* ${IDIR_CUPS}/usr/bin/
     51        ${CP} ${WRKINST}/usr/share/doc/cups/index.html \
     52                ${IDIR_CUPS}/usr/share/doc/cups/
     53        ${CP} ${WRKINST}/usr/share/doc/cups/*.css \
     54                ${IDIR_CUPS}/usr/share/doc/cups/
     55        ${CP} ${WRKINST}/usr/share/doc/cups/images \
     56                ${IDIR_CUPS}/usr/share/doc/cups/
     57        rm -f ${IDIR_CUPS}/usr/bin/cups-config
     58        ${CP} ${WRKINST}/usr/lib*/libcups.so.* ${IDIR_CUPS}/usr/lib/
     59        ${CP} ${WRKINST}/usr/share/cups/banners/* \
     60                ${IDIR_CUPS}/usr/share/cups/banners/
     61        ${CP} ${WRKINST}/usr/share/cups/templates/*.tmpl \
     62                ${IDIR_CUPS}/usr/share/cups/templates/
     63        ${CP} ${WRKINST}/usr/sbin/* ${IDIR_CUPS}/usr/sbin/
     64        ${CP} ./files/etc/cups/* ${IDIR_CUPS}/etc/cups/
     65        ${INSTALL_BIN} ./files/cupsd.init \
     66                ${IDIR_CUPS}/etc/init.d/S${PKG_INIT}cupsd
    12367
    12468include ${TOPDIR}/mk/pkg-bottom.mk
  • package/curl/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              curl
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            46ce665e47d37fce1a0bad935cce58a9
    13 
     13PKG_SOURCE:=            ${PKG_NAME}-${PKG_VERSION}.tar.bz2
    1414PKG_SOURCE_URL:=        http://curl.haxx.se/download/ \
    1515                        http://www.mirrorspace.org/curl/ \
     
    1919                        http://www.mirrormonster.com/curl/download/ \
    2020                        http://curl.mirrors.cyberservers.net/download/
    21 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.bz2
    2221
    23 include $(TOPDIR)/mk/package.mk
     22include ${TOPDIR}/mk/package.mk
    2423
    25 $(eval $(call PKG_template,CURL,curl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    26 $(eval $(call PKG_template,LIBCURL,libcurl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     24$(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
     25$(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2726
    28 $(WRKBUILD)/.configured:
    29         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    30                 $(TARGET_CONFIGURE_OPTS) \
    31                 CFLAGS="$(strip $(TARGET_CFLAGS))" \
    32                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
    33                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
    34                 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
    35                 ./configure \
    36                         --target=$(GNU_TARGET_NAME) \
    37                         --host=$(GNU_TARGET_NAME) \
    38                         --build=$(GNU_HOST_NAME) \
    39                         --program-prefix="" \
    40                         --program-suffix="" \
    41                         --prefix=/usr \
    42                         --exec-prefix=/usr \
    43                         --bindir=/usr/bin \
    44                         --datadir=/usr/share \
    45                         --includedir=/usr/include \
    46                         --infodir=/usr/share/info \
    47                         --libdir=/usr/lib \
    48                         --libexecdir=/usr/lib \
    49                         --localstatedir=/var \
    50                         --mandir=/usr/share/man \
    51                         --sbindir=/usr/sbin \
    52                         --sysconfdir=/etc \
    53                         --disable-nls \
    54                         --enable-shared \
    55                         --enable-static \
    56                         --disable-rpath \
    57                         --with-gnu-ld \
    58                         --disable-thread \
     27CONFIGURE_STYLE=        gnu
     28CONFIGURE_ARGS+=        --disable-thread \
    5929                        --enable-cookies \
    6030                        --enable-crypto-auth \
     
    7444                        --disable-verbose \
    7545                        --with-random="/dev/urandom" \
    76                         --with-ssl="$(STAGING_DIR)/usr" \
     46                        --with-ssl="${STAGING_DIR}/usr" \
    7747                        --without-ca-bundle \
    7848                        --without-gnutls \
    79                         --without-libidn \
    80         )
    81         touch $@
     49                        --without-libidn
     50BUILD_STYLE=            auto
     51INSTALL_STYLE=          auto
    8252
    83 $(WRKBUILD)/.built:
    84         rm -rf $(WRKINST)
    85         mkdir -p $(WRKINST)
    86         $(MAKE) -C $(WRKBUILD) \
    87                 DESTDIR="$(WRKINST)" \
    88                 all install
    89         touch $@
    90 
    91 $(IPKG_CURL):
    92         install -m0755 -d $(IDIR_CURL)/usr/bin
    93         $(CP) $(WRKINST)/usr/bin/curl $(IDIR_CURL)/usr/bin/
    94         $(RSTRIP) $(IDIR_CURL)
    95         $(IPKG_BUILD) $(IDIR_CURL) $(PACKAGE_DIR)
    96 
    97 $(IPKG_LIBCURL):
    98         install -m0755 -d $(IDIR_LIBCURL)/usr/lib
    99         $(CP) $(WRKINST)/usr/lib/libcurl.so.* $(IDIR_LIBCURL)/usr/lib/
    100         $(RSTRIP) $(IDIR_LIBCURL)
    101         $(IPKG_BUILD) $(IDIR_LIBCURL) $(PACKAGE_DIR)
    102 
    103 $(STAGING_DIR)/usr/lib/libcurl.so: $(WRKBUILD)/.built
    104         mkdir -p $(STAGING_DIR)/usr/bin
    105         $(CP) $(WRKINST)/usr/bin/curl-config $(STAGING_DIR)/usr/bin/
    106         mkdir -p $(STAGING_DIR)/usr/include
    107         $(CP) $(WRKINST)/usr/include/curl $(STAGING_DIR)/usr/include/
    108         mkdir -p $(STAGING_DIR)/usr/lib
    109         $(CP) $(WRKINST)/usr/lib/libcurl.a $(STAGING_DIR)/usr/lib/
    110         $(CP) $(WRKINST)/usr/lib/libcurl.so* $(STAGING_DIR)/usr/lib/
    111         $(SED) 's,-I/usr/include,,g' $(STAGING_DIR)/usr/bin/curl-config
    112         $(SED) 's,-L/usr/lib,,g' $(STAGING_DIR)/usr/bin/curl-config
    113         touch $@
    114 
    115 install-dev: $(STAGING_DIR)/usr/lib/libcurl.so
    116 
    117 uninstall-dev:
    118         rm -rf \
    119                 $(STAGING_DIR)/usr/bin/curl-config \
    120                 $(STAGING_DIR)/usr/include/curl \
    121                 $(STAGING_DIR)/usr/lib/libcurl.a \
    122                 $(STAGING_DIR)/usr/lib/libcurl.so* \
    123 
    124 compile-targets: install-dev
    125 clean-targets: uninstall-dev
     53post-install:
     54        ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
     55        ${CP} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin/
     56        ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
     57        ${CP} ${WRKINST}/usr/lib/libcurl.so.* ${IDIR_LIBCURL}/usr/lib/
     58        ${SED} 's,-I/usr/include,,g' ${WRKINST}/usr/bin/curl-config
     59        ${SED} 's,-L/usr/lib,,g' ${WRKINST}/usr/bin/curl-config
    12660
    12761include ${TOPDIR}/mk/pkg-bottom.mk
  • package/cutter/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              cutter
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            50093db9b64277643969ee75b83ebbd1
     13PKG_SOURCE:=            ${PKG_NAME}-${PKG_VERSION}.tgz
     14PKG_SOURCE_URL:=        http://www.lowth.com/cutter/software/
    1315
    14 PKG_SOURCE_URL:=        http://www.lowth.com/cutter/software/
    15 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tgz
     16include ${TOPDIR}/mk/package.mk
    1617
    17 include $(TOPDIR)/mk/package.mk
     18$(eval $(call PKG_template,CUTTER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1819
    19 $(eval $(call PKG_template,CUTTER,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    20 
    21 $(WRKBUILD)/.configured:
    22         touch $@
     20do-build:
     21        ${TARGET_CC} ${WRKBUILD}/cutter.c -o ${WRKBUILD}/cutter
    2322       
    24 $(WRKBUILD)/.built:
    25         $(TARGET_CC) $(WRKBUILD)/cutter.c -o $(WRKBUILD)/cutter
    26         install -d -m0755 $(WRKINST)/usr/sbin
    27         install -m0755 $(WRKBUILD)/cutter $(WRKINST)/usr/sbin/
    28         touch $@
    29        
    30 $(IPKG_CUTTER):
    31         mkdir -p $(IDIR_CUTTER)
    32         $(CP) $(WRKINST)/* $(IDIR_CUTTER)/
    33         $(RSTRIP) $(IDIR_CUTTER)/
    34         $(IPKG_BUILD) $(IDIR_CUTTER) $(PACKAGE_DIR)
     23do-install:
     24        ${INSTALL_DIR} ${IDIR_CUTTER}/usr/sbin
     25        ${INSTALL_BIN} ${WRKBUILD}/cutter ${IDIR_CUTTER}/usr/sbin
    3526
    3627include ${TOPDIR}/mk/pkg-bottom.mk
  • package/cyrus-sasl/Makefile

    r623b9e0 re72c7ab  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              cyrus-sasl
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            268ead27f4ac39bcfe17d9e38e0f2977
     13PKG_SOURCE_URL:=        http://ftp.andrew.cmu.edu/pub/cyrus-mail/
    1314
    14 PKG_SOURCE_URL:=        http://ftp.andrew.cmu.edu/pub/cyrus-mail/
    15 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.gz
     15include ${TOPDIR}/mk/package.mk
    1616
    17 include $(TOPDIR)/mk/package.mk
     17$(eval $(call PKG_template,LIBSASL2,libsasl2,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1818
    19 $(eval $(call PKG_template,LIBSASL2,libsasl2,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     19CONFIGURE_STYLE=        gnu               
     20CONFIGURE_ARGS+=        --disable-sample \
     21                        --enable-staticdlopen \
     22                        --disable-java \
     23                        --disable-alwaystrue \
     24                        --disable-checkapop \
     25                        --enable-cram \
     26                        --enable-digest \
     27                        --disable-otp \
     28                        --disable-srp \
     29                        --disable-srp-setpass \
     30                        --disable-krb4 \
     31                        --disable-gssapi \
     32                        --disable-gss_mutexes \
     33                        --enable-plain \
     34                        --enable-anon \
     35                        --disable-login \
     36                        --disable-ntlm \
     37                        --disable-sql \
     38                        --with-dblib="none" \
     39                        --without-gdbm \
     40                        --with-devrandom="/dev/urandom" \
     41                        --without-pam \
     42                        --without-saslauthd \
     43                        --without-authdaemond \
     44                        --without-pwcheck \
     45                        --with-ipctype=unix \
     46                        --with-openssl="${STAGING_DIR}/usr" \
     47                        --without-des \
     48                        --without-opie \
     49                        --without-ldap \
     50                        --without-mysql \
     51                        --without-pgsql \
     52                        --without-sqlite \
     53                        --without-rc4 \
     54                        --without-dmalloc \
     55                        --without-sfio
     56BUILD_STYLE=            auto
     57INSTALL_STYLE=          auto
    2058
    21 $(WRKBUILD)/.configured:
    22         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    23                 $(TARGET_CONFIGURE_OPTS) \
    24                 CFLAGS="$(TARGET_CFLAGS)" \
    25                 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
    26                 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
    27                 ./configure \
    28                   --target=$(GNU_TARGET_NAME) \
    29                   --host=$(GNU_TARGET_NAME) \
    30                   --build=$(GNU_HOST_NAME) \
    31                   --program-prefix="" \
    32                   --program-suffix="" \
    33                   --prefix=/usr \
    34                   --exec-prefix=/usr \
    35                   --bindir=/usr/bin \
    36                   --datadir=/usr/share \
    37                   --includedir=/usr/include \
    38                   --infodir=/usr/share/info \
    39                   --libdir=/usr/lib \
    40                   --libexecdir=/usr/lib \
    41                   --localstatedir=/var \
    42                   --mandir=/usr/share/man \
    43                   --sbindir=/usr/sbin \
    44                   --sysconfdir=/etc \
    45                   --disable-nls \
    46                   --enable-shared \
    47                   --enable-static \
    48                   --disable-sample \
    49                   --enable-staticdlopen \
    50                   --disable-java \
    51                   --disable-alwaystrue \
    52                   --disable-checkapop \
    53                   --enable-cram \
    54                   --enable-digest \
    55                   --disable-otp \
    56                   --disable-srp \
    57                   --disable-srp-setpass \
    58                   --disable-krb4 \
    59                   --disable-gssapi \
    60                   --disable-gss_mutexes \
    61                   --enable-plain \
    62                   --enable-anon \
    63                   --disable-login \
    64                   --disable-ntlm \
    65                   --disable-sql \
    66                   --with-dblib="none" \
    67                   --without-gdbm \
    68                   --with-devrandom="/dev/urandom" \
    69                   --without-pam \
    70                   --without-saslauthd \
    71                   --without-authdaemond \
    72                   --without-pwcheck \
    73                   --with-ipctype=unix \
    74                   --with-openssl="$(STAGING_DIR)/usr" \
    75                   --without-des \
    76                   --without-opie \
    77                   --without-ldap \
    78                   --without-mysql \
    79                   --without-pgsql \
    80                   --without-sqlite \
    81                   --without-rc4 \
    82                   --without-dmalloc \
    83                   --without-sfio \
    84         );
    85         touch $@
     59pre-build:
     60        ${MAKE} -C ${WRKBUILD}/include \
     61                CC="${HOSTCC}" \
     62                LINK="${HOSTCC} -o makemd5 -lc" \
     63                CFLAGS="" \
     64                LDFLAGS="" \
     65                CPPFLAGS="" \
     66                makemd5
    8667
    87 $(WRKBUILD)/.built:
    88         rm -rf $(WRKINST)
    89         mkdir -p $(WRKINST)
    90         $(MAKE) -C $(WRKBUILD)/include \
    91                 CC="$(HOSTCC)" \
    92                 LINK="$(HOSTCC) -o makemd5 -lc" \
    93                 CFLAGS="" \
    94                 makemd5
    95         $(MAKE) -C $(WRKBUILD) \
    96                 DESTDIR="$(WRKINST)" \
    97                 all install
    98         touch $@
    99 
    100 $(IPKG_LIBSASL2):
    101         install -m0755 -d $(IDIR_LIBSASL2)/usr/lib/
    102         $(CP) $(WRKINST)/usr/lib/libsasl2.so.* $(IDIR_LIBSASL2)/usr/lib/
    103         install -m0755 -d $(IDIR_LIBSASL2)/usr/lib/sasl2
    104         $(CP) $(WRKINST)/usr/lib/sasl2/lib*.so.* $(IDIR_LIBSASL2)/usr/lib/sasl2/
    105         $(RSTRIP) $(IDIR_LIBSASL2)
    106         $(IPKG_BUILD) $(IDIR_LIBSASL2) $(PACKAGE_DIR)
    107 
    108 $(STAGING_DIR)/usr/lib/libsasl2.so: $(WRKBUILD)/.built
    109         mkdir -p $(STAGING_DIR)/usr/include/
    110         $(CP) $(WRKINST)/usr/include/sasl $(STAGING_DIR)/usr/include/
    111         mkdir -p $(STAGING_DIR)/usr/lib/
    112         $(CP) $(WRKINST)/usr/lib/libsasl2.{a,so*} $(STAGING_DIR)/usr/lib/
    113         ln -sf libsasl2.a $(STAGING_DIR)/usr/lib/libsasl.a
    114         ln -sf libsasl2.so $(STAGING_DIR)/usr/lib/libsasl.so
    115         mkdir -p $(STAGING_DIR)/usr/lib/sasl2
    116         $(CP) $(WRKINST)/usr/lib/sasl2/lib*.{a,so*} $(STAGING_DIR)/usr/lib/sasl2/
    117 
    118 install-dev: $(STAGING_DIR)/usr/lib/libsasl2.so
    119 
    120 uninstall-dev:
    121         rm -rf $(STAGING_DIR)/usr/include/sasl
    122         rm -rf $(STAGING_DIR)/usr/lib/libsasl{2,}.{a,so*}
    123         rm -rf $(STAGING_DIR)/usr/lib/sasl2
    124 
    125 compile-targets: install-dev
    126 clean-targets: uninstall-dev
     68post-install:
     69        ${INSTALL_DIR} ${IDIR_LIBSASL2}/usr/lib/sasl2
     70        ${CP} ${WRKINST}/usr/lib/libsasl2.so.* ${IDIR_LIBSASL2}/usr/lib/
     71        ${CP} ${WRKINST}/usr/lib/sasl2/lib*.so.* ${IDIR_LIBSASL2}/usr/lib/sasl2/
    12772
    12873include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.