[Gelistirici] paket alma: ctronome

Fatih Aşıcı fatih at pardus.org.tr
6 Mayıs 2010 Per 14:03:55 EEST


On Wednesday 05 May 2010 17:11:36 Anıl Özbek wrote:
> Merhaba,
> 
> Az önce katkıcı 2009 deposundaki bakıcısız terminal tabanlı bir metronom
> yazılımı, ctronome'yi üzerime aldım. Henüz bayraklar [1] konusuna tam hakim
> olmadığım için paketin bizim bayrakları kullanması için yaptıklarımın tam
> olarak olarak yapılması gerekenler olduğundan emin değilim. Bu konu
> aşıklığa kavuştuktan sonra contrib 2009 stable'ye alacağım paketi.
> 
> Makefile:
> VERSION = 0.5.3
> CC = gcc
> OBJS = ctronome.o dsp.o routines.o
> 
> all: ctronome
> 
> %.o: %.c ctronome.h routines.h
>     $(CC) -c $<
> 
> ctronome: $(OBJS)
>     $(CC) -o ctronome $(OBJS)
> 
> clean:
>     rm -f *.o ctronome
> 
> 
> actions.py:
> def build():
>     pisitools.dosed("Makefile", "-c", "%s -c" % get.CFLAGS())
>     pisitools.dosed("Makefile", "-o", "%s -o" % get.LDFLAGS())
>     pisitools.dosed("Makefile", "^CC=.*", "CC=%s" % get.CC())
>     autotools.make()
> 

Ben bu tür durumlarda Makefile'ı aşağıdaki gibi yamalayıp actions.py içinde 
__PARDUS_* metinlerini dosed ile değiştiriyorum.

--- ctronome-0.5.1.orig/Makefile
+++ ctronome-0.5.1/Makefile
@@ -1,14 +1,14 @@
 VERSION = 0.3
-CC = gcc
+CC = __PARDUS_CC__
 OBJS = ctronome.o dsp.o routines.o
 
 all: ctronome
 
 %.o: %.c ctronome.h routines.h
-       $(CC) -c $<
+       $(CC) __PARDUS_CFLAGS__ -c $<
 
 ctronome: $(OBJS)
-       $(CC) -o ctronome $(OBJS)
+       $(CC) __PARDUS_LDFLAGS__ -o ctronome $(OBJS)
 
 clean:
        rm -f *.o ctronome
-------------- sonraki bölüm --------------
A non-text attachment was scrubbed...
Name: kullanılamıyor
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://liste.pardus.org.tr/gelistirici/attachments/20100506/70dc9e76/attachment-0002.pgp>


Gelistirici mesaj listesiyle ilgili daha fazla bilgi