[MacPorts] #42553: A new portfile for port "miniupnpc"

MacPorts noreply at macports.org
Tue Feb 18 05:52:24 PST 2014


#42553: A new portfile for port "miniupnpc"
----------------------------+--------------------------------
 Reporter:  Arthur200000@…  |      Owner:  macports-tickets@…
     Type:  submission      |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.2.1
 Keywords:  portfile        |       Port:
----------------------------+--------------------------------
 Tested on my Darwin 192.168.0.3 11.4.2 Darwin Kernel Version 11.4.2: Thu
 Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 .

 Updated from miniupnpc @1.6 to miniupnpc at 1.9
 {{{
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c
 -basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
 # $Id: Portfile 99643 2012-11-13 04:26:02Z singingwolfboy at macports.org $

 PortSystem          1.0

 name                miniupnpc
 epoch               2
 version             1.9
 revision            0
 categories          net
 platforms           darwin freebsd
 license             BSD
 maintainers         nomaintainer
 description         Lightweight client for UPnP protocol
 long_description    \
     ${description}

 homepage            http://miniupnp.free.fr/
 master_sites
 http://miniupnp.free.fr/files/download.php?file=${distname}${extract.suffix}&dummy=
 checksums           rmd160  a0c5e8c08f238ade1cf8b721918a41e384d147a6 \
                     sha256
 2923e453e880bb949e3d4da9f83dd3cb6f08946d35de0b864d0339cf70934464

 use_configure       no

 variant universal {}
 if {[variant_isset universal]} {
     set archflags ${configure.universal_cflags}
 } else {
     set archflags ${configure.cc_archflags}
 }

 build.args-append   CC="${configure.cc} ${archflags}"

 post-patch {
     reinplace
 "s|-Wl,-install_name,\$(INSTALLDIRLIB)/|-Wl,-install_name,${prefix}/lib/|"
 ${worksrcpath}/Makefile
 }


 destroot.destdir    PREFIX=${prefix} INSTALLPREFIX=${destroot}${prefix}

 livecheck.type      regex
 livecheck.url       http://miniupnp.free.fr/files/
 livecheck.regex     ${name}-(\\d+(\\.\\d{1,4})+)${extract.suffix}

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/42553>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list