Skip to content

Commit

Permalink
libclastfm: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jun 3, 2024
1 parent 64f48a0 commit 75c0fb3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
27 changes: 27 additions & 0 deletions audio/libclastfm/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name libclastfm
version 0.5
revision 0
categories audio
license GPL
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
description ${name} is an unofficial C-API to the Last.fm web service
long_description {*}${description}
homepage https://sourceforge.net/projects/liblastfm
master_sites sourceforge:liblastfm

checksums rmd160 1409704252e63752fb2848f32973fc140921d951 \
sha256 c9aa7817b557f8d8ef834755740fc813f9351f3185b5bdf4de249bee3675ee42 \
size 346754

patchfiles patch-fix-linking.diff

use_autoreconf yes

depends_build-append \
path:bin/pkg-config:pkgconfig

depends_lib-append port:curl
19 changes: 19 additions & 0 deletions audio/libclastfm/files/patch-fix-linking.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- src/Makefile.am 2012-03-03 06:56:57
+++ src/Makefile.am 2024-06-04 01:23:22
@@ -1,6 +1,6 @@
noinst_PROGRAMS = test example

-AM_LDFLAGS = -Wl,--as-needed -static
+# AM_LDFLAGS = -Wl,--as-needed -static
AM_CPPFLAGS = -g -Wall
LDADD = libclastfm.la

@@ -17,7 +17,7 @@

# Libtool doesnt respect AM_LDFLAGS that much
libclastfm_la_CPPFLAGS = -g -Wall $(CURL_CFLAGS)
-libclastfm_la_LDFLAGS = -Wl,--as-needed $(CURL_LIBS)
+libclastfm_la_LDFLAGS = $(CURL_LIBS)

# Public header file
include_HEADERS = clastfm.h

0 comments on commit 75c0fb3

Please sign in to comment.